Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When looking for new software to install manually via terminal, it often has requirements, dependencies.
I would like to list and search my computer for what I already have installed, via terminal. How do I do that?
Another poster has shown one way to find out what packages are installed, but in practice this won't be of much benefit. Instead you will be better off simply trying to install packages and see what dependency issues come up.
If you have a high-speed Internet connection, use either yum or apt-get, depending on your distribution:
# yum list | grep (package-name or shorter search phrase)
# yum install (package-name)
Any dependency problems will be solved, not flagged, if you do it this way.
That's a good idea but I'm trying practising packageinstalling manually in the terminal so using apt-get would be cheating...
Manual package installation is now in the same category as the dodo bird and the passenger pigeon. By pursuing this objective, you will likely experience "dependency hell" first-hand and will soon be a candidate for post-traumatic stress disorder therapy.
Hay, good luck. Do you by chance own a hair shirt?
There's ways, but as mentioned not much benefit. Outside of some educational aspects and maybe some space management. Although space is so cheap these days. 1TB HDD is like $100 now. Depending on your distro, you might find internet options more revealing ( packages.debian.org ). But it's a family tree thing. A gui requires X which requires a window manager which requires ..., which requires ..., and so on and so on and so on.
For debian-ish ways...
dpkg -l
(lists what is currently installed / or partially installed / partially removed)
dpkg -l '*'
(lists all that is available)
apt-cache show <package>
or
apt-cache showpkg <package>
(lists known dependencies and other package details, but still makes certain assumptions in terms of a base system and such not included in that list)
Or just use dselect or one of the many other installers to navigate dependency hell.
deborphan
(to find out what's installed by not used by anything else anymore, working in reverse at this point)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.