LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-28-2004, 08:16 PM   #1
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Rep: Reputation: 30
How to check if a software exist in my computer


Dear experts,

Is there a command to check if certain software exist in my computer?

I only know to check if certain rpm package is installed, I can use rpm -q to check.

But if certain software comes wit the distribution or if it has been installed by tarball, how do I query its existence?

is there a universal command that queries instead of just query rpm packages.

Thanks in advance,
 
Old 12-28-2004, 08:24 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337

Rep: Reputation: 65
Not sure if there's a command for that, but when you are installing applications from a foreign package/source on your distribution, it's totally up to you to keep things organized. Say, compile your programs always to /usr/local/program (with the "--prefix" parameter when running "./configure"). That way is easier to keep track of what you are doing.

Depending of your distribution/OS and packages, the installation varies. All programs in Slackware installed from native format (.tgz) can be tracked down at /var/log/packages (if I remember right) while native FreeBSD packages are can be viewed at /var/log/db (or something of that sort.. I'm on WinXP right now and my memory is failing ).

So, short answer is: Try to stick with native packages for your distribution. If you've to compile something, compile it to a local where you can actually see them installed /usr/local/<program> is nice...

Last edited by Mega Man X; 12-28-2004 at 08:25 PM.
 
Old 12-28-2004, 09:09 PM   #3
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Original Poster
Rep: Reputation: 30
Hello Megaman X, (from the Rockman video game? ^^)


Thats cool, thanks for the help!
 
Old 12-28-2004, 09:16 PM   #4
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337

Rep: Reputation: 65
Cool Niceman2005! You are welcome!. And yes, huge fan of Megaman/Rockman here ghehe.
 
Old 12-28-2004, 10:12 PM   #5
redjokerx
Member
 
Registered: Aug 2004
Location: San Diego
Distribution: Slackware
Posts: 303

Rep: Reputation: 31
I just wanted to mention checkinstall. I think it will create programs you compile yourself into various package formats (deb/rpm/tgz). Maybe it might be uesful?
 
  


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
Check if users exist in the system hindll01 Programming 12 09-28-2012 03:24 PM
Check if email exist or not proNick Linux - Software 2 08-27-2005 02:25 PM
How to check if array[0] doesn't exist? flamesrock Programming 3 11-05-2004 11:36 AM
script to check $PATH directories exist Frustin Linux - Software 3 09-21-2004 01:20 PM
How many Distributions can co-exist on a computer? anzan Linux - Newbie 5 05-11-2004 12:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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