LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 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
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Debian, Void, Slackware, VMs
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
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-current
Posts: 339

Rep: Reputation: 156Reputation: 156
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,836
Blog Entries: 1

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

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: Oklahoma, USA
Distribution: Slackware
Posts: 906

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
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



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

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

All times are GMT -5. The time now is 04:49 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