From 66fd2815982ba61e7cb02f3cdade4e39b80d2151 Mon Sep 17 00:00:00 2001 From: terminalforlife Date: Tue, 10 Mar 2020 17:36:31 +0000 Subject: [PATCH] Tweak and/or add to apt-get --- sheets/apt-get | 43 ++++++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/sheets/apt-get b/sheets/apt-get index b9f4d2a..7ab505c 100644 --- a/sheets/apt-get +++ b/sheets/apt-get @@ -1,17 +1,20 @@ -# Update the local database of available packages, as discovered from package index -# file found in their sources. This does not actually update your installed -# software! For that, keeping reading. +# apt-get +# Command-line interface to APT package management + +# Update the local database of available packages, as discovered from package +# index file found in their sources. This does not actually update your +# installed software! For that, keeping reading. apt-get update -# Upgrade installed packages, but there may be exceptions, such as important kernel -# packages. Also, packages will not be removed, like if they're deprecated, with -# this method. +# Upgrade installed packages, but there may be exceptions, such as important +# kernel packages. Also, packages will not be removed, like if they're +# deprecated, with this method. apt-get upgrade -# Unlike the above, this will upgrade all of the installed packages, and perform -# other actions required for a successful and thorough upgrade. This will also -# allow for upgrading to the next minor release of your distributions, such as from -# Ubuntu '16.04.1' to '16.04.2'. +# Unlike the above, this will upgrade all of the installed packages, and +# perform other actions required for a successful and thorough upgrade. This +# will also allow for upgrading to the next minor release of your +# distributions, such as from Ubuntu '16.04.1' to '16.04.2'. apt-get dist-upgrade # Clean out (completely) the follow locations of saved DEB files: @@ -26,22 +29,23 @@ apt-get clean -s # View the changelog for the firefox package. Useful prior to or after upgrade. apt-get changelog firefox -# Download PKG (one or more) without actually installing or extracting them. A good -# use for this might be to upgrade an offline system, by downloading the packages -# on a system using an Internet-able machine. Files are downloaded into the CWD. +# Download PKG (one or more) without actually installing or extracting them. A +# good use for this might be to upgrade an offline system, by downloading the +# packages on a system using an Internet-able machine. Files are downloaded +# into the CWD. apt-get download PKG -# Install PKG (one or more), bringing in dependencies and, provided settings allow -# it, install recommended and/or suggested packages. +# Install PKG (one or more), bringing in dependencies and, provided settings +# allow it, install recommended and/or suggested packages. apt-get install PKG -# At times, dependencies won't be installed, yet you still need them; the following -# command will often fix this, and is usually suggested to the user. +# At times, dependencies won't be installed, yet you still need them; the +# following command will often fix this, and is usually suggested to the user. apt-get -f install # Remove PKG, while also purging system-wide configuration files for it. apt-get purge PKG -# Alternative syntax: +# Alternative syntax to the above. apt-get remove --purge PKG # Often used to first update the local database of packages, then, only if @@ -50,4 +54,5 @@ apt-get update && apt-get dist-upgrade # Download specified package (firefox, in this example) and all packages marked # thereby as important or dependencies. Files are downloaded into the CWD. -apt-get download firefox `apt-cache --important depends firefox | awk '{if(NR>1){printf("%s ", $2)}}'` +apt-get download firefox `apt-cache --important depends firefox | + awk '{if(NR>1){printf("%s ", $2)}}'`