Editing Debian package management
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
== APT == | == APT == | ||
Line 15: | Line 10: | ||
* https://manpages.debian.org/unstable/apt/apt-cache.8.en.html | * https://manpages.debian.org/unstable/apt/apt-cache.8.en.html | ||
=== apt-get -- APT package handling utility -- command-line interface === | === apt-get -- APT package handling utility -- command-line interface === | ||
Line 35: | Line 19: | ||
<pre>$ sudo apt-get update</pre> | <pre>$ sudo apt-get update</pre> | ||
=== APT: installing ... === | |||
<pre> | <pre> | ||
$ sudo apt-get install PACKAGE | $ sudo apt-get install PACKAGE | ||
Line 46: | Line 30: | ||
# just download it to the cache directory being specified (instead of /var/cache/apt/archives/): | # just download it to the cache directory being specified (instead of /var/cache/apt/archives/): | ||
$ sudo apt-get install --download-only --option dir::cache=$HOME/tmp PACKAGE | $ sudo apt-get install --download-only --option dir::cache=$HOME/tmp PACKAGE | ||
</pre> | </pre> | ||
Line 57: | Line 38: | ||
</pre> | </pre> | ||
=== APT: removing ... === | |||
<pre> | <pre> | ||
$ sudo apt-get remove PACKAGE | $ sudo apt-get remove PACKAGE | ||
Line 87: | Line 68: | ||
==== installing a Debian package ==== | ==== installing a Debian package ==== | ||
<pre>$ sudo dpkg --install PACKAGE.deb</pre> | <pre>$ sudo dpkg --install PACKAGE.deb</pre> | ||
=== dpkg-deb -- Debian package archive (.deb) manipulation tool === | === dpkg-deb -- Debian package archive (.deb) manipulation tool === | ||
Line 108: | Line 83: | ||
<pre>$ dpkg-deb --info PACKAGE.deb</pre> | <pre>$ dpkg-deb --info PACKAGE.deb</pre> | ||
==== what is the content of the ctrl-tarfile you can extract from PACKAGE.deb? ==== | ==== what conffiles does PACKAGE.deb contain? ==== | ||
<pre>$ dpkg-deb --ctrl-tarfile PACKAGE.deb | tar xf - --to-stdout ./conffiles</pre> | |||
* PACKAGE.deb contains a tarball, | |||
* the tarball contains ./conffiles, | |||
* ./conffiles lists the conffiles. | |||
Maybe you want to try this first: | |||
===== what is the content of the ctrl-tarfile you can extract from PACKAGE.deb? ===== | |||
<pre>$ dpkg-deb --ctrl-tarfile PACKAGE.deb | tar tvf - | <pre>$ dpkg-deb --ctrl-tarfile PACKAGE.deb | tar tvf - | ||
drwxr-xr-x root/root 0 2018-08-27 17:39 ./ | drwxr-xr-x root/root 0 2018-08-27 17:39 ./ | ||
Line 115: | Line 99: | ||
-rw-r--r-- root/root 1071 2018-08-27 17:36 ./conffiles | -rw-r--r-- root/root 1071 2018-08-27 17:36 ./conffiles | ||
-rwxr-xr-x root/root 1228 2018-08-27 17:39 ./postinst</pre> | -rwxr-xr-x root/root 1228 2018-08-27 17:39 ./postinst</pre> | ||
=== dpkg-query === | === dpkg-query === | ||
Line 144: | Line 118: | ||
==== what's the content of an installed package (e.g. PACKAGE) ==== | ==== what's the content of an installed package (e.g. PACKAGE) ==== | ||
<pre>$ dpkg-query --listfiles PACKAGE</pre> | <pre>$ dpkg-query --listfiles PACKAGE</pre> | ||
==== which installed package includes a certain FILE (utility, ...)? ==== | ==== which installed package includes a certain FILE (utility, ...)? ==== | ||
<pre>$ dpkg-query --search FILE</pre> | <pre>$ dpkg-query --search FILE</pre> | ||
= dpkg-source -- Debian source package (.dsc) manipulation tool = | = dpkg-source -- Debian source package (.dsc) manipulation tool = |