User Tools

Site Tools


linux:administration:packages

Table of Contents

Packages

Howto

RPM

  • install a package: rpm -i <package>.pkg
  • show package infos (incl. dependencies): rpm -qiRp <package>.pkg
  • show all files in a package: rpm -qlp <package>.pkg

DPKG

  • install a package: dpkg -i <package>
  • show all installed packages: dpkg -l
  • reconfigures a package:1) dpkg-reconfigure <package>
  • uninstall a package: dpkg -r <package>
  • uninstall, ignoring dependencies: dpkg -r --force-depends <package>
  • show package an (installed) file belongs to: dpkg -S <file-path>

APT

  • update the package lists: apt update
  • update all installed packages: apt upgrade
  • install a package: apt install <package>
  • automatically remove all unused packages: apt-get -y autoremove
  • do not update a package anymore: apt-mark hold <package>
  • show all packages which are on-hold: apt-mark showhold
1)
For example dpkg-reconfigure -plow dash deactivates Dash as shell.
linux/administration/packages.txt · Last modified: 2024/04/22 20:53 by Ralf H.