Apt
From Attie's Wiki
(Difference between revisions)
m (→apt-get) |
m (→apt-file) |
||
Line 30: | Line 30: | ||
<source lang="bash"> | <source lang="bash"> | ||
apt-file search rpmbuild | apt-file search rpmbuild | ||
+ | </source> | ||
+ | |||
+ | List the files that belong (or would be installed by a package): | ||
+ | <source lang="bash"> | ||
+ | apt-file list git-deamon-run | ||
</source> | </source> | ||
Revision as of 19:09, 30 August 2013
Contents |
apt-get
Update the local cache of the repositories:
sudo apt-get update
Update all installed packages
sudo apt-get upgrade
Remove a package
sudo apt-get remove ${PACKAGE}
apt-cache
Use to locate packages by searching name and description:
apt-cache search tree
apt-file
Use to locate packages that provide a given file. First you must retrieve the database & indexes:
sudo apt-file update
Then search for the file:
apt-file search rpmbuild
List the files that belong (or would be installed by a package):
apt-file list git-deamon-run
dpkg
To list the installed packages:
dpkg -l
To list the files installed by a package:
dpkg -L ${package}
To list the files that would be installed by a package
dpkg -c ${.deb file}
To find which package owns a file
dpkg -S ${filename}