LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-05-2015, 11:40 AM   #1
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Rep: Reputation: 46
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.
 
Old 03-05-2015, 11:43 AM   #2
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
check out /var/log/packages/
 
1 members found this post helpful.
Old 03-05-2015, 11:46 AM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Code:
ls /var/log/packages | grep -i jdk
There are probably better ways, but that's what I'm used to doing.
 
1 members found this post helpful.
Old 03-05-2015, 11:46 AM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
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
 
1 members found this post helpful.
Old 03-05-2015, 04:22 PM   #5
neymac
Member
 
Registered: May 2009
Distribution: Slackware64-14.1
Posts: 138

Rep: Reputation: 19
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.

Last edited by neymac; 03-05-2015 at 04:24 PM.
 
Old 03-05-2015, 08:15 PM   #6
slacker1337
Member
 
Registered: Jun 2012
Location: Connecticut, USA
Distribution: Slackware
Posts: 148

Rep: Reputation: 40
Code:
/sbin/pkgtool
Should get you want you want as well, though I typically use /var/log/packages as well.
 
Old 03-08-2015, 12:19 PM   #7
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by neymac View Post
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.
 
Old 03-08-2015, 12:20 PM   #8
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by slacker1337 View Post
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.
 
Old 03-08-2015, 12:38 PM   #9
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: 5508Reputation: 5508Reputation: 5508Reputation: 5508Reputation: 5508Reputation: 5508Reputation: 5508Reputation: 5508Reputation: 5508Reputation: 5508Reputation: 5508
Quote:
Originally Posted by turboscrew View Post
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.
 
1 members found this post helpful.
Old 03-08-2015, 06:23 PM   #10
bassplayer69
Member
 
Registered: Jul 2007
Location: In a van down by the river...
Distribution: MX Linux 21
Posts: 237

Rep: Reputation: 56
Quote:
Originally Posted by Didier Spaier View Post
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.
 
Old 03-08-2015, 07:15 PM   #11
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
pkgtool shouldn't be slow since technically it uses ncurses unless you have a VERY old computer.
 
Old 03-08-2015, 07:24 PM   #12
gus3
Member
 
Registered: Jun 2014
Distribution: Slackware
Posts: 490

Rep: Reputation: Disabled
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.
 
Old 03-09-2015, 01:17 AM   #13
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by ReaperX7 View Post
pkgtool shouldn't be slow since technically it uses ncurses unless you have a VERY old computer.
Stink Bad T42 with Slackware 14.1.
 
Old 03-09-2015, 08:17 AM   #14
cockcrow
LQ Newbie
 
Registered: Dec 2014
Location: Brazil
Distribution: Slackware64
Posts: 24

Rep: Reputation: Disabled
with root:
slackpkg generate-template slack

cat /etc/slackpkg/templates/slack.template
 
Old 03-09-2015, 08:22 AM   #15
cockcrow
LQ Newbie
 
Registered: Dec 2014
Location: Brazil
Distribution: Slackware64
Posts: 24

Rep: Reputation: Disabled
Cool

Quote:
Originally Posted by cockcrow View Post
with root:
slackpkg generate-template slack

cat /etc/slackpkg/templates/slack.template
sorry

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to uninstall packages installed via compiling and installpkg? rubankumars Slackware 1 04-08-2014 07:44 PM
Uinstalling programs not installed with installpkg guisome Slackware 2 02-21-2011 06:41 PM
how can i remove package that are not installed by installpkg wakkana12 Slackware 7 03-04-2010 04:38 PM
How to know if something's installed, and where to find it? Tomás Ó hÉilidhe Slackware 4 02-19-2008 06:39 PM
checkinstall cannot find installpkg fideli Linux From Scratch 2 12-30-2003 05:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration