[SOLVED] How to find out what's installed using installpkg
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
To go a bit more in depth (if it's needed), you can run the following to find any JDK's that are currently installed (at least using the Slackware package management system).
Once in pkgtool, to display installed packages just choose "Remove" then press the key bearing the initial of the package.
For instance to find if JDK is there just press j (the letter, case doesn't matter), a few times until you find it (or not). That's not "dead slow" but rather almost instantaneous.
Once in pkgtool, to display installed packages just choose "Remove" then press the key bearing the initial of the package.
For instance to find if JDK is there just press j (the letter, case doesn't matter), a few times until you find it (or not). That's not "dead slow" but rather almost instantaneous.
+1 for pkgtool. This is what I use and it works quickly.
If it's the JDK (development kit), it'll have the Java compiler command "javac". So:
$ which javac
(make note of the directory)
$ grep -l -i javac$ /var/log/packages/*
This will list all packages containing a filename ending in "javac" (case-insensitive). Don't search just for jdk* or jre* packages; there might be some other, differently-named Java implementations.
If it seems to run slow, that's primarily because the package-management file data gets ejected from cache fairly quickly, being (usually) rarely-accessed. Things will speed up while the contents are cached.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.