Contact:
Thorsten Gunkel
63456 Hanau
Germany
Mail
Vote to help me to improve this page!
Did this page satisfy your expectations?
vote3 Yes
vote2 Partly
vote1 No
Short comment?
Do not change this:
Add your comment to the
guestbook.
Last modified: 20-02-2009 22.36
NO ePATENTS

Debian Commandos

06-08-2005 13.09

List all (installed) packages

export COLUMNS=10
dpkg -l "*"
dpkg -l "*" | grep ^ii
06-10-2006 12.38

Download Source Package and Build It:

apt-get -b source foo

Build Source Package:

dpkg-source -x foo.dsc

Build Sources:

dpkg-buildpackage -rfakeroot
06-10-2006 12.35

Search Package:

apt-cache search foo
16-11-2005 22.47

Reinstall Packages with Missing Files:

for i in /var/lib/dpkg/info/*.list;
do
while read line ;
do
if [ ! -e "$line" ]; then echo "Reinstall $(basename $i) ($line)"; break; fi;
done < "$i" ;
done
06-08-2005 13.09

Which Is the Largest Package that would Be Upgraded:

apt-get upgrade --print-uris -y | awk '{ print $3" "$1" "$2 }' | grep \'.*\' | sort -n | tail -10
06-08-2005 13.09

Build the Packages File:

dpkg-scanpackages ./ /dev/null | gzip > Packages.gz
apt-ftparchive ./ | gzip > Packages.gz
06-08-2005 13.09

Build Kernel:

make-kpkg clean
make-kpkg kernel_image --revision=Configname.Version
make-kpkg --initrd kernel_image
20-02-2009 22.36

Poweroff after Shutdown:

echo "apm" >> /etc/modules
(search for realmode_power_off)
06-08-2005 13.09

Remove a Package despite existing Dependencies:

dpkg -r --force-depends NAME
06-08-2005 13.09

Install and Remove init.d Links

Insert links for foobar using the defaults:

update-rc.d foobar defaults

Insert links for foobar at position 20 in runlevel 2,3,4,5,0,1,6

update-rc.d foobar start 20 2 3 4 5 . stop 20 0 1 6 .

Remove links for foobar

update-rc.d foobar remove

Choose your favourite application via the alternatives system

/usr/sbin/update-alternatives --list   editor
/usr/sbin/update-alternatives --set editor /usr/bin/vim
/usr/sbin/update-alternatives --set editor /usr/bin/emacs21
12-08-2007 11.11

Build Nvidia Kernel Modul

module-assistant auto-install nvidia
Andrew's Debian-nVidia HOWTO
06-08-2005 13.09

Debian add GPG key

Recently, Debian started to use secure apt. You might notice this with messages like this one
W: GPG error: http://... ... Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A080A41350959092
W: You may want to run apt-get update to correct these problems

You can then import the missing key, check it and add it with apt-key
# gpg --keyserver pgpkeys.mit.edu --recv-key A080A41350959092
gpg: requesting key 50959092 from hkp server pgpkeys.mit.edu
gpg: key 50959092: ... imported

# gpg -a --export 50959092 | apt-key add -
OK
16-03-2008 09.41
Powered by PHP Created with Xemacs Valid XHTML 1.0! Valid CSS!