LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-12-2010, 11:42 PM   #1
randyic
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora
Posts: 5

Rep: Reputation: 0
How can I tell if I have all the required stuff installed for a RPM?


I am about to install FreeRadius on my machine and the download page for the RPM lists all the software requirements to install it but I don't know how to check my machine to see if it has all those requirements. All help will be greatly appreciated.

Thank you
Randy

Fedora Core 9
 
Old 09-12-2010, 11:51 PM   #2
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
I think the easiest way is to use the --test flag:

rpm --test --install application-1.0.rpm

That will complain if you're missing any dependencies. Otherwise, you can manually go through your list of installed application and check for each item on the website. For example:

rpm -qa <--- this lists all installed rpm packages, so if the website says you need libpng-devel:

rpm -qa | grep libpng


You can also query for a specific package name (rpm -q libpng-devel), but it has to be an exact match. Piping the list through grep is a bit slower but gives you more flexibility. Also, don't forget you can always:

man rpm
man grep
 
1 members found this post helpful.
Old 09-13-2010, 12:14 AM   #3
tommylovell
Member
 
Registered: Nov 2005
Distribution: Raspbian, Debian, Ubuntu
Posts: 386

Rep: Reputation: 105Reputation: 105
As mcd said, You can use the --test flag on the rpm command.

Here's an example showing UltraEdit.

Code:
[root@athlonz ~]# rpm -ivf --test /root/Download/UltraEdit-1.0-0.5.fc11.x86_64.rpm
error: Failed dependencies:
        libboost_regex-mt.so.4()(64bit) is needed by UltraEdit-1.0-0.5.fc11.x86_64
        libstdc++.so.6(GLIBCXX_3.4.11)(64bit) is needed by UltraEdit-1.0-0.5.fc11.x86_64
[root@athlonz ~]#
But that will tell you just what is immediately missing. If one of the missing dependencies in turn has a missing dependency you won't know that until you add that depend rpm file to the rpm command line (you can string out all of the rpm's and install them all together as one 'job'). This situation of iteratively running the rpm command, downloading the next missing dependency and repeating is known as dependency hell.

A better approach is to install using YUM (if you can). (FreeRadius is available via YUM on Fedora 10. It's probably available on Fedora 9, as well.)

Code:
[root@athlonz ~]# yum search FreeRadius
Loaded plugins: refresh-packagekit
fedora                                                        | 2.8 kB     00:00     
livna                                                         | 2.4 kB     00:00     
rpmfusion-free                                                | 2.7 kB     00:00     
rpmfusion free-updates                                        | 2.8 kB     00:00     
rpmfusion-nonfree                                             | 2.7 kB     00:00     
rpmfusion-nonfree-upda                                        | 2.8 kB     00:00     
updates                                                       | 3.4 kB     00:00     
======================== Matched: FreeRadius =============================
freeradius.x86_64 : High-performance and highly configurable free RADIUS server
freeradius-devel.i386 : FreeRADIUS Development Files
freeradius-devel.x86_64 : FreeRADIUS Development Files
freeradius-dialupadmin.x86_64 : Web management for FreeRADIUS
freeradius-dialupadmin-ldap.x86_64 : LDAP component of the dialupadmin FreeRADIUS Web management tool
freeradius-dialupadmin-mysql.x86_64 : MySQL component of the dialupadmin FreeRADIUS Web management tool
freeradius-dialupadmin-postgresql.x86_64 : Postgresql component of the dialupadmin FreeRADIUS Web management tool
freeradius-krb5.x86_64 : Kerberos 5 support for freeradius
freeradius-ldap.x86_64 : LDAP support for freeradius
freeradius-libs.x86_64 : FreeRADIUS shared libraries
freeradius-mysql.x86_64 : MySQL support for freeradius
freeradius-perl.x86_64 : Perl support for freeradius
freeradius-postgresql.x86_64 : postgresql support for freeradius
freeradius-python.x86_64 : Python support for freeradius
freeradius-unixODBC.x86_64 : unixODBC support for freeradius
freeradius-utils.x86_64 : FreeRADIUS utilities
tinyca2.noarch : Simple graphical userinterface to manage a small CA

[root@athlonz ~]# cat /etc/*ease
Fedora release 10 (Cambridge)
Fedora release 10 (Cambridge)
Fedora release 10 (Cambridge)
[root@athlonz ~]#
YUM has the added advantage of downloading all of the dependent packages automatically. (It has the disadvantage of not having a built-in 'test' option.

Do a 'yum search FreeRadius' to make sure it's available; then you can 'yum install FreeRadius'.

You can supply a local file to YUM instead of using one out of the online repository... but you might end up with mismatched levels. The rpm I have (using my UltraEdit rpm as a example) is for fc11; I'm fc10. Messy.

Code:
[root@athlonz ~]# yum install /root/Download/UltraEdit-1.0-0.5.fc11.x86_64.rpm
Loaded plugins: refresh-packagekit
Setting up Install Process
Examining /root/Download/UltraEdit-1.0-0.5.fc11.x86_64.rpm: UltraEdit-1.0-0.5.fc11.x86_64
Marking /root/Download/UltraEdit-1.0-0.5.fc11.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package UltraEdit.x86_64 0:1.0-0.5.fc11 set to be updated
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.11)(64bit) for package: UltraEdit-1.0-0.5.fc11.x86_64
--> Processing Dependency: libboost_regex-mt.so.4()(64bit) for package: UltraEdit-1.0-0.5.fc11.x86_64
--> Finished Dependency Resolution
UltraEdit-1.0-0.5.fc11.x86_64 from /UltraEdit-1.0-0.5.fc11.x86_64 has depsolving problems
  --> Missing Dependency: libboost_regex-mt.so.4()(64bit) is needed by package UltraEdit-1.0-0.5.fc11.x86_64 (/UltraEdit-1.0-0.5.fc11.x86_64)
UltraEdit-1.0-0.5.fc11.x86_64 from /UltraEdit-1.0-0.5.fc11.x86_64 has depsolving problems
  --> Missing Dependency: libstdc++.so.6(GLIBCXX_3.4.11)(64bit) is needed by package UltraEdit-1.0-0.5.fc11.x86_64 (/UltraEdit-1.0-0.5.fc11.x86_64)
Error: Missing Dependency: libboost_regex-mt.so.4()(64bit) is needed by package UltraEdit-1.0-0.5.fc11.x86_64 (/UltraEdit-1.0-0.5.fc11.x86_64)
Error: Missing Dependency: libstdc++.so.6(GLIBCXX_3.4.11)(64bit) is needed by package UltraEdit-1.0-0.5.fc11.x86_64 (/UltraEdit-1.0-0.5.fc11.x86_64)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
[root@athlonz ~]#

Last edited by tommylovell; 09-13-2010 at 12:46 AM. Reason: added more info
 
1 members found this post helpful.
Old 09-13-2010, 12:15 AM   #4
theKbStockpiler
Member
 
Registered: Sep 2009
Location: Central New York
Distribution: RPM Distros,Mostly Mandrake Forks;Drake Tools/Utilities all the way!GO MAGEIA!!!
Posts: 986

Rep: Reputation: 53
A less technical way

Dependencies are usually listed on the download page or in a "read me" file that is in the tarball file.
Open "Configure Your Computer" and go to "Package Stats"to find what is there.
 
Old 09-13-2010, 12:48 AM   #5
tommylovell
Member
 
Registered: Nov 2005
Distribution: Raspbian, Debian, Ubuntu
Posts: 386

Rep: Reputation: 105Reputation: 105
... and if you want to try the YUM route, YUM has a graphical interface, too ('yumex').

'yum install yumex'
 
Old 09-13-2010, 01:45 AM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,646

Rep: Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654
if this is the dead and unsupported fedora 9 listed as your OS in the first post

please install the CURRENT & SUPPORTED fedora 13 FIRST


and there is a fedora 13 rpm for it
install 13 then the rpmfusion and search yum for freeradius
and it is also in the koji repo for fedora 13
http://koji.fedoraproject.org/koji/p...?packageID=298
 
Old 09-13-2010, 01:05 PM   #7
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,191

Rep: Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326
If you don't mind the older version of the program in the F9 repository, that's probably the best way to go (if you have some reason for sticking with F9). The version you've downloaded may need more up-to-date versions of its dependencies than you have available.

A good way to install an rpm and sort out the dependencies is
su -c "yum localinstall ~/whatever/package.rpm"
That way yum will get the dependencies from the repository and install the program.
 
Old 09-13-2010, 01:47 PM   #8
randyic
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora
Posts: 5

Original Poster
Rep: Reputation: 0
Wow, I didn't expect to see so many responses so quick. Thank you all they were all very helpful. I see I should have told you that I was doing this remotely using SSH (I am using Putty as the client on my local machine.) Anyway, I installed it using Yum like most of you suggested and it worked great and you guys are all superheros.
tommylovell, I followed your instructions, it was so easy.
JohnVV, I agree with you. I would like to keep the OS updated but I have so many programs on this server that make upgrading a major task.

Thanks Guys
Randy
 
Old 09-13-2010, 03:04 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,646

Rep: Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654Reputation: 2654
running Fedora on a production server is never a good idea . Don't get me wrong i like fedora . It is a great Research & Development / Testing distro .
BUT
WAS NEVER INTENDED/ NOR DESIGNED to be use on a production server !


seeing as a new release comes out EVERY 6 MONTHS and a clean install is RECOMMENDED

install CentOS it has a 5 year life span - just like RHEL 5
there are far TOO MANY security holes that WILL NEVER be fixed in the unsupported fedora 9 seeing as the very last update as in June/July of 2009

if you use fedora YOU MUST STAY CURRENT , and that means reinstalling the OS on the server EVERY 6 MONTHS
 
  


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
rpm stuff installing oracle linareja Linux - Enterprise 4 10-14-2008 03:51 PM
rpm stuff - specifically SDL titanium_geek Linux - Software 3 01-13-2005 04:18 PM
Where is all this stuff installed? mouse46 Linux - Software 2 10-22-2004 12:38 PM
Fun stuff we've installed Kroenecker Linux From Scratch 2 10-08-2004 06:03 AM
Cant tell the rpm where stuff is.. tfdml37 Red Hat 2 05-06-2004 10:38 PM

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

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