Friday, September 10, 2021

Software management on linux

Debian has the largest package library of software.
It uses a package format .deb  that are installed by the dpkg app. 
In order to manage dependencies and download automatically there is apt (Advanced Packaging Tool).

Synaptic is a graphical package management tool based on GTK+ for apt.
Apt commands in the console.

apt installapt-get installInstalls a package
apt removeapt-get removeRemoves a package binaries
apt purgeapt-get purgeRemoves package with configuration and user data
apt autoremoveapt-get autoremoveRemoves unused dependencies
apt upgradeapt-get upgradeUpgrades all upgradable packages
apt updateapt-get updateRefreshes repository index / package list
apt full-upgradeapt-get dist-upgradeUpgrades packages with auto-handling of dependencies
apt searchapt-cache searchSearches for the program
apt showapt-cache showShows package details
apt listLists packages with criteria (installed, upgradable etc)
apt edit-sourcesEdits sources list

You can use synaptic  as a GUI for apt.

apt autoremove packagename --purge  - remove binaries, config, user data and dependencies - complete uninstall

apt list --installed | grep packagename - check if you have some package installed

Note: - purge only removes system wide configuration from the /etc folder.
It does not remove user profiles that are stored in the home folder .config and .cache folders

To remove 32 bit architecture packages and remove source repositories

sudo apt-get purge `dpkg --get-selections | grep ":i386" | awk '{print $1}'`
dpkg --remove-architecture i386
dpkg --print-foreign-architectures

https://ninite.com/ - package repository for windows.

No comments:

Post a Comment