My terminal journey, part 02. Becoming terminal friendly.
series: Apt Spelunking.
tags: terminal, apt-get, apt-cache, apt-mark, dpkg
Discovering the packages; vertical lists.
apt package manager
First Command: sudo apt list --upgradeable
Command Breakdown:
sudo is root privileges (to become admin for a single command).
apt is the Command Name.
list to display a list of packages satisfying certain criteria.
--upgradeable the criteria
Command Standard Output: (abridged)
Listing...
alsa-ucm-conf/focal-updates,focal-updates 1.2.2-1ubuntu0.7 all [upgradable from: 1.2.2-1ubuntu0.6]
alsa-utils/focal-updates 1.2.2-1ubuntu2.1 amd64 [upgradable from: 1.2.2-1ubuntu2]
bluetooth/focal-updates,focal-updates 5.53-0ubuntu3.1 all [upgradable from: 5.53-0ubuntu3]
gir1.2-webkit2-4.0/focal-updates,focal-security 2.32.0-0ubuntu0.20.04.1 amd64 [upgradable from: 2.30.6-0ubuntu0.20.04.1]
google-chrome-stable/stable 90.0.4430.212-1 amd64 [upgradable from: 90.0.4430.93-1]
iio-sensor-proxy/focal-updates 2.8-1ubuntu1 amd64 [upgradable from: 2.8-1]
qemu-system-x86/focal-updates 1:4.2-3ubuntu6.16 amd64 [upgradable from: 1:4.2-3ubuntu6.15]
qemu-utils/focal-updates 1:4.2-3ubuntu6.16 amd64 [upgradable from: 1:4.2-3ubuntu6.15]
samba-common-bin/focal-updates,focal-security 2:4.11.6+dfsg-0ubuntu1.8 amd64 [upgradable from: 2:4.11.6+dfsg-0ubuntu1.6]
Discovering the packages; horizontal list.
apt-get package manager
Second Command: sudo apt-get -u upgrade --assume-no
Command Breakdown:
sudo is root privileges (to become admin for a single command).
apt-get is the Command Name.
-u or --show-upgraded list of packages that are to be upgraded; must be used with upgrade.
upgrade is used to install the newest versions of all packages currently installed.
--assume-no Automatically answers "No" when the command asks, “Do you want to continue? [Y/n]”. (Do you want to upgrade at this moment? No. You get it).
Note: Linux Mint 20 manpage for apt-get does not include the -u option or description.
-u, --show-upgraded
Show upgraded packages. Print out a list of all packages that are to be upgraded.
Command Standard Output:
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages were automatically installed and are no longer required:
libllvm10 libllvm10:i386 libnvidia-common-450 libnvidia-compute-455:i386
libnvidia-decode-455:i386 libnvidia-encode-455:i386 libnvidia-fbc1-455:i386
libnvidia-gl-455:i386 libnvidia-ifr1-455:i386 nvidia-kernel-common-455
nvidia-kernel-source-455 nvidia-utils-455 xserver-xorg-video-nvidia-455
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
libnvidia-common-450 libnvidia-common-460 linux-generic
linux-headers-generic linux-image-generic
The following packages will be upgraded:
alsa-ucm-conf alsa