ubuntu apt command Quick

Is a collection of many package management tool collection, the original low-level commands can also continue to use low-level commands provide greater control.

If not special requirements, the direct use apt command will be more concise.

 

apt command Substituted command Function commands
apt install apt-get install Installation package
apt remove apt-get remove Removing packages
apt purge apt-get purge Removing packages and configuration files
apt update apt-get update Refresh the repository index
apt upgrade apt-get upgrade Upgrade all upgradeable packages
apt autoremove apt-get autoremove Automatically delete unwanted package
apt full-upgrade apt-get dist-upgrade Automatic processing dependencies in the upgrade package
apt search apt-cache search Search application
apt show apt-cache show Display Installation Details

Of course, apt as well as some of their own command:

New apt command Function commands
apt list List package contains conditions (installed, can upgrade)
apt edit-sources Edit the source list

I need to note that: apt command also still evolving, so you might see a new option in a future release.

apt-get deprecated?
There is no official release of any Linux distribution apt-get will be deactivated news, at least it has more than apt, more detailed operational functions. For low-level operations, still need to apt-get.
Should I use apt or apt-get?
Since the two commands are used, so I use apt or apt-get it? As a regular Linux user, the system geeks suggest that you first use apt to adapt and begin as soon as possible. Not only because of the vast number of Linux distributors are recommended apt, but the main thing it provides the necessary options for Linux package management.

 

Guess you like

Origin www.cnblogs.com/dvstream/p/11463153.html