Apt-GET command

Source: Internet
Author: User

Debian is one of the earliest Linux releases. It can attract public attention because it makes it very easy to install and uninstall software. When other releases are stuck in the dependency quarary, Debian users are immune from these problems because of a better package management system.
Debian once again acts as a pioneer in the road. She pioneered apt (Advanced Packaging tool ). This tool is then transplanted to the Red Hat system by conectiva for managing RPM packages. We can also see her figure in other releases.
APT is a software that requires commands. However, many graphical software such as synaptic, kynaptic, and adept are also available.
All Debian-based distributions use this package management system. The Deb package can package the files of an application together, basically like the installation files on Windows. Here we will introduce how to use the installation package processing software to achieve our goal.
the first step to use apt-get is to introduce necessary software libraries. The Debian software libraries are the collection of all Debian software packages, which exist on some public websites on the Internet. Add their addresses to Apt-get to search for the software we want. /Etc/APT/sources. list is the configuration file that stores these address lists. Its format is as follows:
Deb [web or FTP address] [release name] [main/contrib/non-free]
our commonly used Ubuntu is a Debian-based release.

we use apt get to obtain this list. The following are common commands I have compiled
apt-Get update : modify/etc/APT/sources. run this command after list or/etc/APT/preferences. In addition, you need to regularly run this command to ensure that your package list is up-to-date.
apt-Get install packagename : install a new software package.
apt-Get remove packagename : uninstall an installed software package (keep the configuration file)
apt-get-Purge remove packagename : uninstall an installed software package (delete the configuration file)
apt-Get autoclean apt : All installed or unloaded software is backed up on the hard disk. If you need space, you can run this command to delete the software you have deleted
apt-Get clean : This command also deletes the backup of the installed software, however, this will not affect the use of the software.
apt-Get upgrade : update all installed software packages.
apt-Get dist-upgrade : upgrade the system to the new version
* apt-Get autoclean : Run this command regularly to clear packages that have been uninstalled. deb file. In this way, you can release a large amount of disk space. If your requirements are urgent, you can use apt-Get clean to release more space. This command will delete the. Deb file that has installed the software package. In most cases, you will not use these. Debs files. Therefore, if you feel overwhelmed by insufficient disk space, this method may be worth a try.

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.