Summaries/Overig/Linux/Packages.md

1.5 KiB

title updated created
Packages 2021-05-04 14:58:11Z 2021-05-04 14:58:11Z

Remove unused

install

sudo apt install deborphan

run terminal version

deborphan

To remove the orphaned packages, run:

sudo orphaner

graphical version

sudo apt install gtkorphan sudo gtkorphan

Alternative

sudo apt autoclean && sudo apt autoremove dpkg --remove

check broken dependencies

sudo apt-get check

apt-cache search [string1 stringn]

apt-cache pkgnames apt-cache search

get package info

apt-cache show

dependencies

apt-cache showpkg

statistics

apt-cache stats

distro update

sudo apt-get dist-upgrade sudo apt-get install --only-upgrade

install specific version

sudo apt-get install vsftpd=2.3.5-3ubuntu1

remove without removing configurations

sudo apt-get remove

remove configurations

sudo apt-get purge

remove package and configuration

sudo apt-get remove --purge

cleanup diskspace

sudo apt-get clean

check log off a package

sudo apt-get change log

Get Debian version

lsb_release -a

Disk info

sudo hdparm -I /dev/sda1

which kernels are installed?

dpkg --list | grep linux-image

sudo dpkg -i

sudo dpkg --remove

sudo add-apt-repository 'deb https://typora.io/linux ./'

Create and install rpm installation package

sudo alien packagename.rpm sudo dpkg -i packagename.deb