apt ist der Standardpaketmanager für die Kommandozeile. Er hat überhaupt keine Oberfläche, ist also kein interaktives Programm wie aptitude. apt löst Abhängigkeiten auf und schlägt diese ebenfalls zur Installation vor.
Paket installieren
user@pc:~$ sudo apt install PAKETNAME1
Paket deinstallieren (und Konfiguration behalten)
user@pc:~$ sudo apt remove PAKETNAME1
Paket komplett deinstallieren (auch Konfiguration löschen)
user@pc:~$ sudo apt purge PAKETNAME1
Paketquellen aktualisieren
user@pc:~$ sudo apt update
Get:4 http://security.debian.org/debian-security trixie-security InRelease [43.4 kB]
Hit:5 http://debian.ethz.ch/debian trixie InRelease
Get:6 http://debian.ethz.ch/debian trixie-updates InRelease [47.3 kB]
Get:7 http://security.debian.org/debian-security trixie-security/main Sources [205 kB]1
2
3
4
5
2
3
4
5
Updates installieren
Nach dem Aktualisieren der Paketquellen wird folgender Befehl zum Aktualisieren des Systems ausgeführt:
user@pc:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
linux-image-4.19.0-7-amd64
Use 'sudo apt autoremove' to remove it.
The following packages will be upgraded:
nextcloud-desktop-common nextcloud-desktop-l10n
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/866 kB of archives.
After this operation, 39.9 kB of additional disk space will be used.
Do you want to continue? [Y/n]1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14