Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-26-2012, 01:57 AM   #1
Registered: Sep 2007
Posts: 102

Rep: Reputation: 12
How to know a rpm is for which distribution.

I have one rpm file and I want to know this rpm is for which distribution ,
I have tried by command rpm -qip "package.rpm"
it showing the distribution is this the distribution for which the rpm is??

Kindly tell me and also the architecture for which a rpm is made ??

Old 03-26-2012, 02:32 AM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebJessie, + 50+ other Linux OS, for test only.
Posts: 15,612

Rep: Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989
I have one rpm file
Which package name ? ?

Most often a package can be traced on the internet,
by entering the package name.

Architecture : If no specification in the package name :
Unpack, and use the file command with a binary file.

The less command ( or / lessfile ) will show
the "package info" and the files.

Old 03-26-2012, 04:09 AM   #3
Senior Member
Registered: Apr 2007
Location: bbsr,orissa,India
Posts: 1,356

Rep: Reputation: 135Reputation: 135
For most of the rpms the distribution name and the architecture are mentioned in the name of the rpm.

x86_64 - For 64 bit machines
i386 - For 32 bit machines
noarch - No arch is mentioned, arch is ignored

mdv - for mandriva
fc - for fedora
el - redhat and its clones

What the name of the rpm you have ??
1 members found this post helpful.
Old 03-26-2012, 11:44 AM   #4
Senior Member
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,574

Rep: Reputation: 944Reputation: 944Reputation: 944Reputation: 944Reputation: 944Reputation: 944Reputation: 944Reputation: 944
The command you used (rpm -qip "package.rpm") should tell you the distro, as in this output:
Vendor: CentOS
Packager: CentOS BuildSystem
Build Host:
1 members found this post helpful.
Old 03-26-2012, 11:58 AM   #5
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
@pradiptart: You already have an answer on this thread to your original question.


But, in general, you don't want to be downloading packages from the 'net (with little or no understanding about what they're built for) and installing them. You're only going to create headaches for yourself.

Stick to your GNU/Linux distro's package manager. If a particular package you need is not available, it's often the case that you can add a repository that does contain the package.

For more help on that, we need to know what distro/version you're using, and what you are trying to accomplish.


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
Usplash in rpm based distribution erani Linux - Software 3 06-19-2007 11:10 AM
How to find RPM's on distribution CDs TomF Linux - Newbie 2 05-29-2004 11:22 AM
install RH rpm distribution from DOS celeb-x Red Hat 1 01-04-2004 04:00 PM
install RH rpm distribution from DOS celeb-x Linux - General 1 01-04-2004 03:58 PM
How to know what is installed on a non-rpm based distribution? shimsha *BSD 3 05-17-2003 12:42 PM

All times are GMT -5. The time now is 08:27 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration