Merge branch 'fibre' of ssh://git.onelab.eu/git/myslice into fibre
[unfold.git] / debian / deb-cheat-sheet
1 --- search package name
2 apt-cache search emacs
3 --- install one package
4 apt-get install emacs23-nox
5 --- preparing upgrade (fetch and index latest versions of the repos)
6 apt-get update 
7 --- actually update one package
8 apt-get upgrade myslice
9 --- list packages
10 dpkg -l
11 dpkg -l '*foo*'
12 --- list (files for) one package 
13 dpkg -L myslice
14 dpkg-deb -c myslice_0.2.4.lxc.2013.11.26_amd64.deb
15 --- detailed info (e.g. to see complete version that is truncated in dpkg -l)
16 dpkg -s myslice
17 dpkg --info -c myslice_0.2.4.lxc.2013.11.26_amd64.deb
18
19 --- install from a local .deb 
20 dpkg -i foo.deb
21 - or, if this has deps that need to be pulled through apt-get:
22 gdebi foo.deb
23 (install with apt-get install -y gdebi-core)
24
25 --- find which package a file belongs to
26 apt-file search /path/to/file
27 (can be installed with : sudo apt-get install apt-file)