Command-line package management with APT
If you are comfortable using the Terminal, you can use apt (Advanced Packaging Tool) to install or remove software. You need administrative access to use apt. See Administrative Tasks for more details.
To update the local list of packages, enter in a Terminal:
sudo apt-get update
To install all available updates:
sudo apt-get upgrade
To search for a package:
apt-cache search package
To install a package:
sudo apt-get install package
To remove a package:
sudo apt-get remove package
To list other apt commands and options:
apt-get help
For more information, see
Debian’s apt manual:
http://www.debian.org/doc/user-manuals#apt-howto
转载请注明:在路上 » apt command