LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-10-2003, 10:14 AM   #1
drfrankie
LQ Newbie
 
Registered: Jun 2003
Location: Sunny South Florida
Distribution: Slackware 9.0
Posts: 18

Rep: Reputation: 0
a silly newbie question


Hi...I am having alot of fun learning how to use linux and reading documentations. One question..when I read some documentation and they tell me "make sure you have this and this installed". How do I check if I have it installed?

I have used the pkgtool and I know I can find alot of packages I have installed there. what if I install something via rpm? will it still show in the pkgtool? What if I installed via tar.gz?

Linux is so cool that there probably is a command to check. Can someone help me with it?

Thanks for your time,
 
Old 06-10-2003, 10:20 AM   #2
rvijay17
LQ Newbie
 
Registered: Oct 2002
Posts: 29

Rep: Reputation: 15
if installed from rpm, do
rpm -qa | grep <package_name>

if you have the package_name installed , it'll show you or else it won't.

read more about this at
man rpm

regards,
vijay.
 
Old 06-10-2003, 12:12 PM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
RPM may not really work with Slackware.

What you are after is pkgtool.
 
Old 06-10-2003, 04:25 PM   #4
drfrankie
LQ Newbie
 
Registered: Jun 2003
Location: Sunny South Florida
Distribution: Slackware 9.0
Posts: 18

Original Poster
Rep: Reputation: 0
ok..so lets say I need to find where mozilla is installed (I do) how do I find it if I installed it by compiling it myself?

I do # find / -name mozilla and it shows me where some of the files are. Is that it? Is that everything?

bash-2.05b# find / -name mozilla
/usr/bin/mozilla
/usr/local/mozilla
/usr/local/mozilla/mozilla
bash-2.05b#

why didn't it show me the .mozilla/ in my home directory?

I have a feeling that what I need to do is rm the /usr/bin/mozilla, but I am scared of doing that. :| --total linux noob

here is exactly what I need to do:

I installed slackware 9.0 (full install). It comes with mozilla 1.3. (yuk) Now I installed 1.4b from tar.gz into /usr/local/mozilla

to launch mozilla 1.4b I have to do: /usr/local/mozilla/./mozilla
It works perfectly and I am happy with it.

How do I get rid of the 1.3

I have 1,000,000 other questions but I resist asking them because I learn more if I RTFM, but in this case I have not found it in the manuals.

thanks for your time,
 
Old 06-11-2003, 07:41 AM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
If you want to remove a part of the original install, then pkgtool is the way to go. It has an option for removing packages that will list all the packages it knows about. Just select the Mozilla 1.3 package and get rid of it.

If you are compiling from source, you'll also want to check out the CheckInstall program. It replaces the make install step in compiling and updates Slackware so that your compilied program looks like a Slack pack. Checkinstall does actually install the program, but if you want to remove it later you can use tools like pkgtool.
 
Old 06-11-2003, 08:27 AM   #6
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: a few...
Posts: 654

Rep: Reputation: 32
the fun really begins when you are on an RPM based distribution ... say SuSE, and update from a tar.gz source code file, and make something yourself ... say gtk, and are happily running the new version of gtk, until you use YaST2 and it decides "hold on a minute, you need the version that shipped with SuSE" and then it installs the old version, and then you are wondering why nothing doesn't seem to work anymore.

In short, all of those tools that track what you do or don't have are worth didly squat. ./configure it and if you have what the software needs great, if it doesn't it will let you know, and then you can always worry about where to get it from.
 
Old 06-11-2003, 11:11 AM   #7
drfrankie
LQ Newbie
 
Registered: Jun 2003
Location: Sunny South Florida
Distribution: Slackware 9.0
Posts: 18

Original Poster
Rep: Reputation: 0
thanks alot for your posts guys..everything is now running smoothly. This is another linux obstacle that I now don't fear.

I think I will stay away from rpm..

on my way to becomming M$ free!!:
 
  


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
Silly Newbie software install problem with GTK2 Jadasin Linux - Newbie 1 08-08-2004 11:25 PM
Silly newbie question knephilim Linux - Software 7 03-28-2003 12:29 PM
Silly Newbie Question: which free server distro is best??? scottyman Linux - Distributions 7 02-03-2003 12:43 AM
Silly Question MattB Linux - Software 1 06-05-2002 11:30 PM
very silly question jayakrishnan Linux - General 12 04-08-2002 04:59 AM

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

All times are GMT -5. The time now is 04:39 PM.

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