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 01-25-2007, 03:04 AM   #1
BigBenton
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
packages version


Hi,

I'm running FC6.
How can I see installed packages versions and include the values in coditions inside build scripts?

Thanks,
Eric.
 
Old 01-25-2007, 03:57 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
How can I see installed packages versions and
Code:
]$ rpm -q --qf="%{name}-%{version}-%{release}\n" somePackage
somePackage-4.5.3-28.1

]$ rpm -q --qf="%{version}\n" somePackage
somePackage-4.5.3-28.1
4.5.3

include the values in coditions inside build scripts
If you mean .spec files:
Code:
Requires: /bin/bash /usr/bin/perl anotherPackage
# or:
Requires: somePackage >= 4.5.6, anotherPackage >= 0.1
# or:
Requires: somePackage
Requires: anotherPackage
Best read the "Max RPM" online doc and your distro's requirements before building packages if you're going to distribute them or have people download them.
 
  


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
Updating Fedora 6 packages installs second version of Fedora. cricballa Linux - Distributions 1 01-14-2007 09:05 PM
2 same packages; different version Swakoo Red Hat 3 08-30-2006 03:07 AM
Downgrade/earlier version of packages? donv2 Fedora 1 04-23-2006 10:58 PM
Help! Installed the i686 kernel & glibc packages instead of the i386 version penguin_powered Linux - Newbie 3 04-11-2004 11:45 PM
Newer Slackware Packages on older slackware version pengStudent Slackware 2 11-12-2003 12:47 PM

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

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