LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 12-31-2012, 09:44 AM   #1
tstamp
LQ Newbie
 
Registered: Dec 2012
Posts: 8

Rep: Reputation: Disabled
Checking to see whether a package is already installed


Before downloading dependencies I might already have, how can I check to see if I already have them?
 
Old 12-31-2012, 09:59 AM   #2
hitest
Senior Member
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD
Posts: 4,141

Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
Just launch # pkgtool
Then you can browse through and see what is installed on your system.
 
Old 12-31-2012, 10:00 AM   #3
dr.s
Member
 
Registered: Feb 2010
Distribution: Slackware64
Posts: 127

Rep: Reputation: 19
You can run a slackpkg search with the package name you're interested in.

Quote:
# slackpkg search subversion

Looking for subversion in package list. Please wait... DONE

The list below shows all packages with name matching "subversion".

[ installed ] - subversion-1.7.6-x86_64-1

You can search specific files using "slackpkg file-search file".
 
Old 12-31-2012, 10:00 AM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,536
Blog Entries: 1

Rep: Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999Reputation: 999
...or
Code:
ls /var/log/packages | grep name_of_package
 
1 members found this post helpful.
Old 12-31-2012, 06:23 PM   #5
fadein
LQ Newbie
 
Registered: Dec 2012
Location: Utah, USA
Distribution: Slackware, Gentoo
Posts: 2

Rep: Reputation: Disabled
I like to avoid the extra process and just let the shell filter the list for me:
Code:
 ls /var/log/packages/*name_of_pkg*
 
Old 01-03-2013, 11:05 PM   #6
drumz
Member
 
Registered: Apr 2005
Location: Scottsdale, AZ, USA
Distribution: Slackware
Posts: 188

Rep: Reputation: 33
I added the following to my ~/.bashrc

Code:
alias lsp='ls /var/log/packages'
alias lspg='lsp | grep'
So I can do the following:

Code:
$ lspg gcc
gcc-4.7.1-x86_64-1
gcc-g++-4.7.1-x86_64-1
gcc-gfortran-4.7.1-x86_64-1
gcc-gnat-4.7.1-x86_64-1
gcc-go-4.7.1-x86_64-1
gcc-java-4.7.1-x86_64-1
gcc-objc-4.7.1-x86_64-1
gccmakedep-1.0.2-noarch-2
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Pretending a Package is Installed by Creating an Empty Package with Checkinstal LXer Syndicated Linux News 0 05-03-2009 03:10 PM
checking package details kapilbajpai88 Linux - Newbie 1 01-09-2009 04:37 PM
RPM package manager says package needs to be installed. But I already installed it! nick623 Linux - Software 2 05-24-2005 02:15 AM
message "Problem during installation: x package needed for (installed) x package frayed2 Linux - Newbie 1 04-24-2005 07:05 PM
Checking the version of a package _maco_ Linux - Newbie 4 02-04-2004 05:37 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration