Ubuntu installation software command

Source: Internet
Author: User

//////////////////////////////////////////////////////////////////////
Get root right Run terminal
Su Root
/////////////////////////////////////////////////////////////////////
Frequently used apt command parameters:

Apt-cache Search Package Package

Apt-cache Show package get information about the package, such as description, size, version, etc.

sudo apt-get install package installation package

sudo apt-get Install package--Reinstall reinstall package

sudo apt-get-f Install repair Install "-F =--fix-missing"

sudo apt-get Remove Package Delete Package

sudo apt-get Remove Package--purge delete packages, including deleting profiles, etc.

sudo apt-get update source

sudo apt-get upgrade update installed packages

sudo apt-get Dist-upgrade upgrade system

sudo apt-get dselect-upgrade use Dselect upgrade

Apt-cache depends package understand usage dependencies

Apt-cache Rdepends package is to see which packages are dependent on the package

sudo apt-get BUILD-DEP Package Installation-related compilation environment

Apt-get Source package Download the source code for this package

sudo apt-get clean && sudo apt-get autoclean cleanup unwanted packages

sudo apt-get check checks for corrupted dependencies
////////////////////////////////////////////////////////////////////////
A useful cleanup command under Ubuntu
2010-04-30 13:45
System Garbage Cleanup
sudo apt-get autoclean//cleaning up older versions of the software cache
sudo apt-get clean//Clear All software cache
sudo apt-get autoremove//delete orphaned software no longer used by the system

Unlike the Windows system, Ubuntu Linux does not produce useless junk files, but in the upgrade cache, Ubuntu Linux does not automatically delete these files, today is to say these garbage file cleanup methods.

1, a very useful cleanup command:

sudo apt-get AutoClean
sudo apt-get clean
sudo apt-get autoremove

These three commands primarily clean up the upgrade cache and the unwanted packets.

2, clean up the cached files of opera Firefox:

LS ~/.opera/cache4
LS ~/.mozilla/firefox/*.default/cache

3, clean Linux under the orphaned packets:

We can use the graphic interface: Gtkorphan
sudo apt-get install gtkorphan-y
Terminal command We can use: Deborphan
sudo apt-get install deborphan-y

4, Uninstall: Tracker

This thing generally I just install Ubuntu will be the first delete tracker he will not only produce a large number of cache files, but also affect the boot speed. So it's OK to delete it in the new profit.

5, remove the excess kernel: do not delete the wrong oh, remember.

Open Terminal Knock command: dpkg--get-selections|grep Linux

There is the image of the kernel file

To delete old kernel files:

sudo apt-get remove kernel filename (for example: Linux-image-2.6.27-2-generic)

The kernel deletes, frees up space, should be able to release 130-140m space.

Finally, don't forget to look at the current kernel: uname-a

Appendix:

Temporary files directory for package management:

Package in

/var/cache/apt/archives

Did not download the finished in

/var/cache/apt/archives/partial


After using Ubuntu for a while, you'll find that there are a lot of kernels installed in the system because of automatic upgrades. Like me, I actually installed the following so many, this caused a long launch list. You must erase some of the unused.

The first is to use the following command to list all installed cores, and the following table, with image, is the kernel file. Select the package to unload from, and use Apt-get to uninstall

$ dpkg--get-selections|grep Linux
Libselinux1 Install
linux-386 Install
linux-image-2.6.15-23-386 Install
linux-image-2.6.15-27-386 Install
linux-image-2.6.15-27-686 Install
linux-image-2.6.15-28-386 Install
linux-image-2.6.15-28-686 deinstall
linux-image-386 Install
Linux-kernel-headers Install
linux-restricted-modules-2.6.15-23-386 Install
linux-restricted-modules-2.6.15-27-386 Install
linux-restricted-modules-2.6.15-27-686 Install
linux-restricted-modules-2.6.15-28-386 Install
linux-restricted-modules-2.6.15-28-686 deinstall
linux-restricted-modules-386 Install
Linux-restricted-modules-common Install
Linux-sound-base Install
Util-linux Install

The specific uninstall method is
sudo apt-get remove linux-image-2.6.15-23-386

This enables the automatic deletion of kernel files, as well as freeing up disk space.

In addition, a command should be recorded.
Uname-a

Use this command to view the kernel used by the current system.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.