Difference between revisions of "Debian - handbook for apt-get"

From Blue-IT.org Wiki

(APT)
Line 58: Line 58:
 
7. Komplettes Desaster korrigieren / Desaster recovery  
 
7. Komplettes Desaster korrigieren / Desaster recovery  
 
  dpkg --reconfigure -a
 
  dpkg --reconfigure -a
 +
 +
8. 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")}'
  
 
[[Category:Debian]]
 
[[Category:Debian]]
 
[[Category:Ubuntu]]
 
[[Category:Ubuntu]]

Revision as of 16:02, 29 December 2013

Konsole öffnen, als Administrator anmelden. Open a console (terminal) and login as root.

Also see

Navigate

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

1. Updaten / update

apt-get update

2. Suchen / search

apt-cache search irgendein_name

3. Pakete installieren / install packages

apt-get install (--reinstall) irgendein_paket

4. Pakete deinstallieren (VOLLSTÄNDIG) / uninstall packages

apt-get remove (--purge) irgendein_paket

5. Distribution auf den neuesten Stand bringen / Distribution update

apt-get upgrade

6. Schiefgelaufene Installation wiederholen / Redo an installation

apt-get -f install

7. Komplettes Desaster korrigieren / Desaster recovery

dpkg --reconfigure -a

8. 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")}'