Debian, finding and installing tools

From Andreida
Revision as of 06:55, 5 January 2025 by Andreas (talk | contribs) (Andreas moved page Debian, finding and install tools to Debian, finding and installing tools: bad title)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

You keep your system up to date with

apt-get update
apt-get upgrade
apt-get dist-upgrade

With

apt-get update

you get the current list of packages and information about them. With

apt-cache search <What-You-Want> 

you search inside that information. With

apt-get install <package>

you get the package you found out you probably want.

That is all good and working. Mostly. But sometimes it is not good enough. You perhaps know exactly what command you want to be able to execute, but you don't know which package that command/file is in. There is a solution:

apt-get install apt-file
apt-file update
apt-file search lsblk
cdist: /usr/lib/python3/dist-packages/cdist/conf/type/__filesystem/explorer/lsblk
fish-common: /usr/share/fish/completions/lsblk.fish
grc: /usr/share/grc/conf.lsblk
jc: /usr/lib/python3/dist-packages/jc/parsers/lsblk.py
jc: /usr/share/doc/jc/parsers/lsblk.md.gz
manpages-de: /usr/share/man/de/man8/lsblk.8.gz
manpages-ja: /usr/share/man/ja/man8/lsblk.8.gz
manpages-pl: /usr/share/man/pl/man8/lsblk.8.gz
manpages-uk: /usr/share/man/uk/man8/lsblk.8.gz
pcp-testsuite: /var/lib/pcp/testsuite/smart/lsblk.sh
python3-dmm: /usr/lib/python3/dist-packages/dmm/modules/lsblk/__init__.py
python3-dmm: /usr/lib/python3/dist-packages/dmm/modules/lsblk/lsblk.py
util-linux: /bin/lsblk
util-linux: /usr/share/bash-completion/completions/lsblk
util-linux: /usr/share/man/man8/lsblk.8.gz
zsh-common: /usr/share/zsh/functions/Completion/Linux/_lsblk
apt-file search lsblk | grep /bin/
util-linux: /bin/lsblk