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