Chapter 7. The Debian package management tools
37
apt get remove foo
To remove the foo package and its configuration files from your system, run:
apt get purge remove foo
To upgrade all the packages on your system to a new Debian GNU/Linux release, run:
apt get dist upgrade
Note that you must be logged as root to perform any commands that modify the system pack
ages.
The apt tool suite also includes the
apt cache
tool to query the package lists. You can use
it to find packages providing specific functionality through simple text or regular expression
queries and through queries of dependencies in the package management system. Some com
mon ways to use
apt cache
are:
To find packages whose description contain word:
apt cache search
word
To print the detailed information of a package:
apt cache show
package
To print the packages a given package depends on:
apt cache depends
package
To print detailed information of the versions available for a package and the packages
that reverse depends on it:
apt cache showpkg
package
For more information, install
apt
package and read
apt get(8)
,
sources.list(5)
and install the
apt doc
package and read
/usr/share/doc/apt doc/guide.html
/index.html
.
<
New Page 1
Web Hosting Colorado