LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to find out what's installed using installpkg (https://www.linuxquestions.org/questions/slackware-14/how-to-find-out-whats-installed-using-installpkg-4175535856/)

turboscrew 03-05-2015 11:40 AM

How to find out what's installed using installpkg
 
My problem is that I think I may have two versions of JDK, and the old one seems to haunt me.

genss 03-05-2015 11:43 AM

check out /var/log/packages/

dugan 03-05-2015 11:46 AM

Code:

ls /var/log/packages | grep -i jdk
There are probably better ways, but that's what I'm used to doing.

bassmadrigal 03-05-2015 11:46 AM

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).

Code:

ls /var/log/packages | grep JDK

neymac 03-05-2015 04:22 PM

I use QTGZManager to see what is installed and to update my system, it is very good. It can be found at slackbuilds.org site.

slacker1337 03-05-2015 08:15 PM

Code:

/sbin/pkgtool
Should get you want you want as well, though I typically use /var/log/packages as well.

turboscrew 03-08-2015 12:19 PM

Quote:

Originally Posted by neymac (Post 5327515)
I use QTGZManager to see what is installed and to update my system, it is very good. It can be found at slackbuilds.org site.

Have to check that out...
Thanks.

turboscrew 03-08-2015 12:20 PM

Quote:

Originally Posted by slacker1337 (Post 5327592)
Code:

/sbin/pkgtool
Should get you want you want as well, though I typically use /var/log/packages as well.

On my machine pkgtool is dead-slow.

Didier Spaier 03-08-2015 12:38 PM

Quote:

Originally Posted by turboscrew (Post 5328777)
On my machine pkgtool is dead-slow.

Please elaborate as this statement is very vague.

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.

bassplayer69 03-08-2015 06:23 PM

Quote:

Originally Posted by Didier Spaier (Post 5328785)
Please elaborate as this statement is very vague.

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.

ReaperX7 03-08-2015 07:15 PM

pkgtool shouldn't be slow since technically it uses ncurses unless you have a VERY old computer.

gus3 03-08-2015 07:24 PM

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.

turboscrew 03-09-2015 01:17 AM

Quote:

Originally Posted by ReaperX7 (Post 5328946)
pkgtool shouldn't be slow since technically it uses ncurses unless you have a VERY old computer.

Stink Bad T42 with Slackware 14.1.

cockcrow 03-09-2015 08:17 AM

with root:
slackpkg generate-template slack

cat /etc/slackpkg/templates/slack.template

cockcrow 03-09-2015 08:22 AM

Quote:

Originally Posted by cockcrow (Post 5329233)
with root:
slackpkg generate-template slack

cat /etc/slackpkg/templates/slack.template

sorry

cat /etc/slackpkg/templates/slack.template | grep JDK


All times are GMT -5. The time now is 12:47 AM.