How to view the installation location of a software in linux

when I use linux to install the software, it gives me the impression that I install it step by step with the search results, and then until the last step, the software is installed, and it feels like it"s gone. Unlike windows, which can right-click to open a file location, how to view the location of a software installation and configuration file in linux ?

Jul.14,2021

the path where the which location execution software is located

which

different distributions of Linux have different package management tools.
apt or yum or pacman and so on to find available installation packages. Take Ubuntu as an example, such as

apt search python
apt list python -sharp

Last may be what you want:

dpkg-query -L python

will show which files are installed in the python package

the output on my machine is:

/.
/usr
/usr/bin
/usr/bin/dh_python2
/usr/lib
/usr/lib/valgrind
/usr/lib/valgrind/python.supp
/usr/share
/usr/share/apps
/usr/share/apps/konsole
/usr/share/apps/konsole/python.desktop
/usr/share/debhelper
/usr/share/debhelper/autoscripts
/usr/share/debhelper/autoscripts/postinst-pycompile
/usr/share/debhelper/autoscripts/preinst-pycentral-clean
/usr/share/debhelper/autoscripts/prerm-pyclean
/usr/share/doc
/usr/share/doc/python
/usr/share/doc/python/FAQ.html
/usr/share/doc/python/copyright
/usr/share/doc/python/faq
/usr/share/doc/python/faq/extending.html
/usr/share/doc/python/faq/general.html
/usr/share/doc/python/faq/gui.html
/usr/share/doc/python/faq/installed.html
/usr/share/doc/python/faq/library.html
/usr/share/doc/python/faq/progamming.html
/usr/share/doc/python/faq/windows.html
/usr/share/doc/python/python-policy.dbk.gz
/usr/share/doc/python/python-policy.html
......
Menu