Managing Packages and Repositories on Ubuntu / Debian Based Distros

Last Updated on

A quick reference for refreshing / updating / upgrading packages on Ubuntu. The first script block runs all the updates, cleans repositories an finally removes unneeded packages. The second block installs ucaresystem-core which runs automatically – this integrates all the prior operations into one component and automates the process during package operations.

apt-get update: refreshes available repositories and updates package versions – it does not install or modify any packages.
apt-get upgrade: Installs / upgrades existing packages, should be run after the aforementioned update command.

1
2
3
4
5
6
7
8
# Run both commands in tandem:
# apt-get update && apt-get upgrade
#
sudo apt-get update
sudo apt-get upgrade
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove

Installing ucaresystem-core:

1
2
3
sudo add-apt-repository ppa:utappia/stable
sudo apt update
sudo apt install ucaresystem-core

Localpurge will remove packages from the local machine that have multi region / language data. It is configured by default to retain English (US).

1
sudo apt-get install localepurge
Lima

About the author

Lima is the visual nautical indicator for "stop instantly."

Leave a Reply