Apt
Inhaltsverzeichnis
Config-Files
alle pfade beziehen sich auf /etc/apt/
apt.conf
bzw. apt.conf.d/[filename]
forciere eine bestimmt paket-architektur:
APT::Architecture "amd64";
preferences (pinning)
Package: * Pin: release c=repack Pin-Priority: 901
in diesem fall habe ich eine sektion 'repack' erstellt. in dieser sektion lege ich von mir allgemein vorkonfigurierte pakete ab die ich mit dpkg-repack wieder in ein DEB gepackt habe. damit diese pakete der offiziellen version aus den sektionen 'main', 'contrib' oder 'non-free' vorgezogen werden lege ich einen PIN auf die sektion 'repack'
pinning standart repos:
Package: dspam Pin: version 3.6.8-5 Pin-Priority: 999 Package: dspam-doc Pin: version 3.6.8-5 Pin-Priority: 999 Package: * Pin: origin www.debian-multimedia.org Pin-Priority: 989 Package: * Pin: release l=Backports.org archive Pin-Priority: 988
dies bevorzugt die debian-multimedia pakete vor den backports
der rest bekommst das standart-pinning von 500
Keyring installieren
wget http://download.tuxfamily.org/shames/A42A6CF5.gpg -O- | apt-key add -
apt-file
suche nach paketnamen
# apt-file search libexpat.so.0 libexpat1: usr/lib/libexpat.so.0
apt-file gibt den paketnamen aus der das entsprechende file enthaelt
apt-get
details zum apt-get befehl
apt-get source
pakete mit apt-get source herunterladen und installieren.
apt-get source php5
laed das source.deb herunter packt das source.deb aus und wendet die patches an.
apt-get build-dep
installiert alle benoetigten *-dev pakete die zum compilieren benoetigt werden...
cd /source-root/of/package dpkg-buildpackage
baut das paket
apt-cache
apt-cache shows informations for packages/preferences a.s.o.
apt-cache policy
policy shows the decision process which repo is selected for a particular package.
# apt-cache policy libc6-amd64 libc6-amd64: Installiert: 2.9-18+opp~2 Kandidat: 2.9-18+opp~2 Versions-Tabelle: *** 2.9-18+opp~2 0 500 http://deb2.rubbish.de lenny/main Packages 100 /var/lib/dpkg/status 2.7-18lenny7 0 500 http://deb2.rubbish.de lenny/main Packages 500 http://deb2.rubbish.de lenny/updates/main Packages 500 http://ftp2.de.debian.org lenny/main Packages 500 http://ftp.de.debian.org lenny/main Packages 500 http://security.debian.org lenny/updates/main Packages
apt-cache show
shows detailed informations for a package
# apt-cache show libc6-amd64 Package: libc6-amd64 Priority: standard Section: libs Installed-Size: 9952 Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org> Architecture: i386 Source: eglibc Version: 2.9-18+opp~2 Depends: libc6 (= 2.9-18+opp~2) Conflicts: amd64-libs (<= 1.2) Filename: dists/oldstable/main/binary-i386/libs/libc6-amd64_2.9-18+opp~2_i386.deb Size: 4171412 MD5sum: cc0437d69d803689e27c2e821349e258 SHA1: c2b240fc35139d052ffebeb0e584130e7804ba8f SHA256: 41e641715ff1b36e772e854012cb21a6fe760cc3f2aa3da2a4cc8c8482e8a82e Description-de: GNU C Bibliothek: Gemeinsam genutzte 64bit-Bibliotheken f�r AMD64 Dieses Paket beinhaltet die Standard-C-Laufzeitbibliothek und die Standard-Mathematik-Laufzeitbibliothek sowie viele andere Laufzeitbibliotheken. Dies ist die 64bit-Version der Bibliothek f�r AMD64-Systeme. Package: libc6-amd64 Priority: optional Section: libs Installed-Size: 9892 Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org> Architecture: i386 Source: glibc Version: 2.7-18lenny7 Depends: libc6 (= 2.7-18lenny7) Conflicts: amd64-libs (<= 1.2) Filename: pool/main/g/glibc/libc6-amd64_2.7-18lenny7_i386.deb Size: 4200216 MD5sum: 01c5430dacbe3bb55f65772df663cae3 SHA1: bb853b5c0a20f4af81a0e6d055948e076d88f2ea SHA256: 731bc38bd797b6e804e60c9c5e2595011a428497c1825182295696bdfe243a8f Description-de: GNU C Bibliothek: Gemeinsam genutzte 64bit-Bibliotheken f�r AMD64 Dieses Paket beinhaltet die Standard-C-Laufzeitbibliothek und die Standard-Mathematik-Laufzeitbibliothek sowie viele andere Laufzeitbibliotheken. Dies ist die 64bit-Version der Bibliothek f�r AMD64-Systeme. Tag: role::shared-lib, suite::gnu