Friday, June 20, 2008

ubuntu quick reference






























apt-cache search

case insensitive search of the package database for the keyword given. the package names and descriptions are returned where that keyword is found


apt-cache stats

print statistics on all packages installed


apt-cache depends

print dependencies for a package,whether it is installed or not

Ex: apt-cache depends wine





apt-cache pkgnames

lists all packages installed on the system


apt-cache show

display the information about the software from the named package

Ex: apt-cache show wine



apt-get -d insttall

download the package only, placing it in /var/cache/apt/archives


apt-get autoclean

can be run any time to delete partially downloaded packages or packages no longer installed


apt-get clean

removes all the cached packages from /var/cache/apt/archives to free up disk space


apt-get --purge remove

remove the named package and all its configuration files remove --purge keyword to keep config files


apt-config -v

print version information of installed APT utilities


apt-key list

Lists gpg keys that APT knows about



















1. Prefix commands with sudo to run.
Ubuntu is a trademark of Canonical Ltd. Licensed under CC-BY-SA 3.0. Free to redistribute;
see creativecommons.org for details.

No comments:

Post a Comment