LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-22-2003, 01:42 PM   #1
AUSanders79
Member
 
Registered: Aug 2003
Location: Alabama
Distribution: Slack 10.1/FreeBSD 5.4
Posts: 37

Rep: Reputation: 15
What's Installed?


Ok, so I've got a pretty standard installation of RH8. I am wanting to start installing things. Let's say a new update for OpenSSL comes out or there is a newer ver than the one I currently have. how do I check to see what ver OpenSSL I have? If I check via rpm -qa, then I get the package name. So that's great. BUT, what about in the future if I install something via source and not RPM (cause that's different right?) then the source install won't show the latest OpenSSL ver in an rpm query, will it? I guess I could just look through the directory structure or do a find or whatever, but is there no simple way to see what all versions of packages I ahve installed? And when you install from source, is that really a package you are installing? I just want to do this right and have the latest versions on my machine. Thanks!
 
Old 09-22-2003, 02:16 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
There is kpackage, it lists all the packages installed on your system. You can use up-to-date to update your system. RPM's for the latest releases are usually availiable as soon as a new release is out. Unless you are into writing down everthing you install, I would stick with RPMs unless you have no choice.
 
Old 09-22-2003, 02:22 PM   #3
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
Mate. If you install from source, then you wont have any record of what the version is. Fortunately you can usually query a package but starting it with ./filename --vesion to get the version.

Now, I'm quite sure that you can use rpm to install packages from source anyway, you'll have to read the man page for rpm "man rpm" (and yes, a package is a software program)

Dont worry too much about doing things "right" generally speaking, if it works when your done, you've done it "right enough". In linux there is no set way of doing anything really.

I install stuff from source quite a lot on my SuSE box, I generall find that it's easiest to keep track of whats going on with my source code by just keep is all stuffed in one directory that I do all installs from, "/opt/install/".

After you get used to RH and linux in general, and you really want to stay on the bleeding edge of stuff, take a look at the Gentoo distro It takes most of the pain out of installing packages (all the pain really, 'cept when it dont work ) And the almost the entire distro is compiled from source.

Last edited by fatgod; 09-22-2003 at 02:26 PM.
 
Old 09-22-2003, 02:51 PM   #4
AUSanders79
Member
 
Registered: Aug 2003
Location: Alabama
Distribution: Slack 10.1/FreeBSD 5.4
Posts: 37

Original Poster
Rep: Reputation: 15
OK, thanks for the help. Here's a question though. So let's say I want to install OpenSSL 0.9.7b. I do an RPM qa and find out running OpenSSL 0.6.2 or some other number. Do I need to erase that package before I install the newest ver, or do I install on top of it or what? And if I try to erase via rpm -e there's too many dependancies. So will it break all the dependancies if I do an rpm -e --nodeps and then install the newest version? I guess my question is, what is the proper means of upgrading a package that's intalled? Thanks again...
 
Old 09-22-2003, 03:18 PM   #5
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
well if its an RPM then just install the new version over the top.

If it's source then you have to find out where all the files for the current version are kept on the disk, and then configure your source for compiling as required, then install it over the top (instructions that generally come with source code are very good, and easy to follow - once you get the hang of it that is)

So long as all the files of the old version are being overwritten by the new ones then you cant go wrong. You dont even need to reconfigure anything, well, somtimes you get new features and sometimes existing features change a bit, but for the most part your sweet.
 
Old 09-22-2003, 04:24 PM   #6
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
If you compile from source, you might want to use "checkinstall". It's a tool that monitors your "make install", and creates an package from it. (which you can de-install).

I used to fillup my entire /opt/ folder, until I discovered checkinstall. (leaving some libraries outside /usr/local/lib often causes problems for example, and kde programs should be installed in /opt/kde/) Nowadays, I create an package with checkinstall, and prefix the package name with "X-", so I can find it in the gigantic list of packges. (and check the site for updates now and then)


If you're worried about vulnarability (since you referred to openssh), try "netstat -anpA inet". It shows all active connections and servers listening. Surely you'll find a few things you might want to turn off.

I've been playing with an auto-update tool (for slackware) last week, but a few things happend I didn't like at all. (changes in /etc/, and and my session-chooser of GDM is messed up) Auto update tools are great, but --upgrade-all is a little dangerous..
 
  


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
Ndiswrapper installed driver installed, hardware present, but modprobe doesn't likeit Flukey Linux - Hardware 1 04-14-2007 11:22 AM
I have Redhat 3.0 factory installed on my Dell hardware. I have installed JDK 1.4.2 vcvinith Red Hat 2 04-18-2005 07:09 AM
Installed Fedora, which installed Grub - how to boot to Knoppix? squall14716 Linux - General 3 03-15-2004 03:11 PM
libjpeg already installed... i try to uninstall... not installed... thiscompismessing Laptop2250 Linux - Software 1 11-21-2003 08:20 PM
Win2k installed, Mandrake installed dual? callisto35 Linux - Newbie 2 08-27-2003 08:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration