Mostly for Debian, some Arch
Packages
To see all the files the package installed onto your system, do this:
dpkg-query -L
To see the files a .deb file will install
dpkg-query -c <package_name.deb>
To see the files contained in a package NOT installed, do this once (if you haven’t installed apt-file already:
sudo apt-get install apt-file
sudo apt-file update
then
apt-file list ‘package_name’
to find a file:
1 | $ find / -name 'program.c' 2>/dev/null |
/ | Start searching from the root directory (i.e / directory)} |
-name | Given search text is the filename rather than any other attribute of a file |
‘program.c’ | Search text that we have entered. Always enclose the filename in single quotes.. why to do this is complex.. so simply do so. |
Package manager hierarchy on Debian:
dpkg –> apt-get, aptitude –> Synaptic
1 |
|
Debian installation of a package
1 |
|
dpkg-source -x foo_version-revision.dsc
will extract the package into a directory called foo-version.
If you want just to compile the package, you may cd into foo-version directory and issue the command
dpkg-buildpackage -rfakeroot -b
to build the package (note that this also requires the fakeroot package), and then
dpkg -i ../foo_version-revision_arch.deb
to install the newly-built package(s).
To delete message 21
& d 21
To delete messages 1-10
& d 1-10
Only works if you exit properly:
& quit OR
& q