Ubuntu 16.04 LTS Package Management basic operations

Source: Internet
Author: User


As we have described in the new Ubuntu 16.04 feature, Ubuntu's package management commands have changed with the release of Ubuntu 16.04 LTS, and the new system incorporates the APT (advanced packages) used in the Debian project To accomplish a variety of different tasks, the ATP command completely replaces the Apt-get, Apt-cache, and other features we've previously introduced in basic operations for Linux package management. The ATP was created to address the problems encountered by a large number of package management, hoping to end a major drawback similar to Linux's early system dependencies. The ATP command itself, however, is more fragmented, and it is difficult for a novice user to find its Help information. For the past more than 10 years, almost all Debian and Ubuntu users have been using Apt-get for administrative operations such as installing and removing packages. Now everyone should also try to switch to the new APT command.

Note: Ubuntu 16.04 retains the Apt-get series commands to keep up with the habits of older users.
simplify command line with apt

Below we list the use of the ATP command in Ubuntu 16.04 LTS versus the old version of Ubuntu in the usage of package management:

Ubuntu 16.04 LTS old version of Ubuntu
Apt Install package name Alternative apt-get Install package name
Apt Remove package name Replace apt-get Remove package name
Apt Search package Name Alternative Apt-cache Search package name
Apt Show package name Alternative Apt-cache Show Package name
APT Update Alternative apt-get Update
APT Upgrade Alternative Apt-get Upgrade
Apt list–installed
  • Alternative dpkg–get-selections | grep-v deinstall
  • Alternative dpkg-l
Apt list–upgradable Apt-get-u upgrade–assume-no
PT Edit-sources
  • Replace Echo ' new line of text ' | sudo tee-a/etc/apt/sources.list
  • Alternative sudo nano/etc/apt/sources.list
Apt Autoremove Alternative apt-get Autoremove
Apt Purge package name Alternative Apt-get Purge package name

Free to provide the latest Linux technology tutorials Books, for open-source technology enthusiasts to do more and better: http://www.linuxprobe.com/

Ubuntu 16.04 LTS Package Management basic operations

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.