5/07/2019

Debian/Ubunt Package Installation from Default Repositories.

Before you Begin

Note: This is meant to be a building upon the previous posts with minimal repetition, the previous post has relevant information,

Your chosen distribution will have a default package depository in which the "apt" (or apt-get) will retrieve packages maintained by the fine folks who maintain your Linux distro. I am using Ubuntu Server 18.04 LTS to create this post, if your experience may vary with different versions and distributions. Also remember to update your package list and upgrade your existing packages: with the "sudo apt update" and "sudo apt upgrade" commands  Alsot note: This is meant to be a building upon the previous posts with minimal repetition, the previous post has relevant information,

Finding Packages Names

"apt list <argument>".

The argument can include full names or partial names with a * character at the beginning and/or end of the partial word.


To Install Packages


"sudo apt install <package name>"


To Remove Packages


'apt remove <package name>"

 
Note: I used Telnet simply as an example, I do not suggest using telnet outside of legacy situations or during the configuration process.  It is a rather insecure protocol and old protocol that should only be used when there are no other options or in a learning lab environment.

5/01/2019

Updating Debian Based Linux Installs


The Package Management System


Applications and the operating system itself is broken down in to piece of software called packages. Packages can be installed, uninstalled, and updated independently of each other.  Packages are held in depositories.  Depository's must be configured by URL, although a there will be a default depository per-configured for your Distro's Make and Model. Th default depository maintained by Ubuntu developers with stock packages that they maintain, regardless of the organization or team that wrote the software. This ensures everything you install has been compiled and tested for your specific version of Linux.  Third party developers can and do maintain their own independent depositories, which can added or removed bu the user/administrator, Although that will be covered in a future post.


APT


For Ubuntu and most other Debian based distributions to install software updates the command you need to know is  "apt".  apt is a a command that streamlines the use of two other commands "apt-get" and "apt-cache" into a single and more user friendly command. This command uses a the Debian Package Management System. "apt" is a front end command for both  "apt-get" and "apt-cache" commands into a single more user friendly command.

General Usage Structure:


"sudo apt  [options] <commands/argument>" - as usual you can get more information via "apt --help" and "man apt"

Update Package lists.


"sudo apt update"  - This updates the package lists.  It downloads fresh package lists and compares it to the system's own list of installed packages. It does NOT download or install any actual updates!


"sudo apt upgrade" - downloads and installs new versions of installed packages. It does not install any new dependencies.

"sudo apt full-upgrada"  will upgrades to the new version of the packages and install new dependencies.

"sudo apt autoremove"  - Removes unused packages, freeing up storage space.

Getting information with apt. 

 "apt list" - lists all packages, probably will fill buffer.

"apt list --installed" - lists installed packages.

"apt show <package name>"  - shows information about specific package(s).  Can use * symbol to list multiple matching.



Debian/Ubunt Package Installation from Default Repositories.

Before you Begin Note: This is meant to be a building upon the previous posts with minimal repetition, the previous post has relevant info...