Difference between revisions of "Debian - handbook for apt-get"
From Blue-IT.org Wiki
(→APT) |
(→APT) |
||
Line 38: | Line 38: | ||
==APT== | ==APT== | ||
− | + | === Updaten / update === | |
apt-get update | apt-get update | ||
− | + | === Suchen / search === | |
apt-cache search irgendein_name | apt-cache search irgendein_name | ||
− | + | === Pakete installieren / install packages === | |
apt-get install (--reinstall) irgendein_paket | apt-get install (--reinstall) irgendein_paket | ||
− | + | === Pakete deinstallieren (VOLLSTÄNDIG) / uninstall packages === | |
apt-get remove (--purge) irgendein_paket | apt-get remove (--purge) irgendein_paket | ||
− | + | === Distribution auf den neuesten Stand bringen / Distribution update === | |
apt-get upgrade | apt-get upgrade | ||
+ | apt-get dist-upgrade | ||
− | + | === Schiefgelaufene Installation wiederholen / Redo an installation === | |
apt-get -f install | apt-get -f install | ||
− | + | === Komplettes Desaster korrigieren / Desaster recovery === | |
dpkg --reconfigure -a | dpkg --reconfigure -a | ||
− | + | === Get all deb entries in all sources-list (for apt-mirror) === | |
find /etc/apt -name "*.list" | grep -v mirror.list | awk '{system("cat " $0 " | grep -v deb-src | egrep ^deb")}' | find /etc/apt -name "*.list" | grep -v mirror.list | awk '{system("cat " $0 " | grep -v deb-src | egrep ^deb")}' | ||
+ | |||
+ | === Paketliste erstellen und zurückspielen === | ||
+ | dpkg --get-selections > selections.list | ||
+ | |||
+ | Replay: | ||
+ | dpkg --set-selections < selections.list | ||
+ | apt-get dselect-upgrade | ||
+ | |||
+ | Clear the selections cache: | ||
+ | dpkg --clear-selections | ||
[[Category:Debian]] | [[Category:Debian]] | ||
[[Category:Ubuntu]] | [[Category:Ubuntu]] |
Revision as of 07:02, 19 April 2014
Konsole öffnen, als Administrator anmelden. Open a console (terminal) and login as root.
Also see
Contents
- 1 Navigate
- 2 Locate
- 3 APT
- 3.1 Updaten / update
- 3.2 Suchen / search
- 3.3 Pakete installieren / install packages
- 3.4 Pakete deinstallieren (VOLLSTÄNDIG) / uninstall packages
- 3.5 Distribution auf den neuesten Stand bringen / Distribution update
- 3.6 Schiefgelaufene Installation wiederholen / Redo an installation
- 3.7 Komplettes Desaster korrigieren / Desaster recovery
- 3.8 Get all deb entries in all sources-list (for apt-mirror)
- 3.9 Paketliste erstellen und zurückspielen
Navigieren in Verzeichnissen
Wo bin ich?
pwd
Verzeichnis anzeigen
ls
In Verzeichnis wechseln. (Tip: mit Tabulatortaste vervollständigen)
ls cd Ve (Tabulatortaste drücken) cd Verzeichnisname
Verzeichnis runter
cd ..
Locate
Datei suchen / Search for files
1. Suchdatenbank aktualisieren / actuate search database
updatedb
2. Suchen / search
locate dateiname | grep muster
Beispiel für Dateinamen / Examples for filenames
locate *.rpm | grep synaptic locate *.doc | grep tax locate *.txt
APT
Updaten / update
apt-get update
Suchen / search
apt-cache search irgendein_name
Pakete installieren / install packages
apt-get install (--reinstall) irgendein_paket
Pakete deinstallieren (VOLLSTÄNDIG) / uninstall packages
apt-get remove (--purge) irgendein_paket
Distribution auf den neuesten Stand bringen / Distribution update
apt-get upgrade apt-get dist-upgrade
Schiefgelaufene Installation wiederholen / Redo an installation
apt-get -f install
Komplettes Desaster korrigieren / Desaster recovery
dpkg --reconfigure -a
Get all deb entries in all sources-list (for apt-mirror)
find /etc/apt -name "*.list" | grep -v mirror.list | awk '{system("cat " $0 " | grep -v deb-src | egrep ^deb")}'
Paketliste erstellen und zurückspielen
dpkg --get-selections > selections.list
Replay:
dpkg --set-selections < selections.list apt-get dselect-upgrade
Clear the selections cache:
dpkg --clear-selections