Most importantly: Linux is case-sensitive. "gparted
" and "Gparted
" are not the same program name, and only the first is right.
To see if a package ( which contains a program AND the program's ancillary files) is installed, use the terminal command dpkg -l packagename
(dpkg -l gparted
). To see a list of the files installed by a package use the terminal command dpkg -L packagename
(dpkg -L gparted
).
To get from a file on your system back to the package that installed it, use the terminal command dpkg -S filename
(dpkg -S /bin/bash
or dpkg -S $(type -p bash)
).
dpkg -S filename
- what should I use that for? I understand it would tell me which package a file belongs to, but how does that help me troubleshoot the problem? – kat Dec 31 '19 at 17:38