LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 03-26-2012, 01:57 AM   #1
pradiptart
Member
 
Registered: Sep 2007
Posts: 102

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


Sir,
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 ??

Thanks
 
Old 03-26-2012, 02:32 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
Quote:
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 lesspipe.sh / lessfile ) will show
the "package info" and the files.

.
 
Old 03-26-2012, 04:09 AM   #3
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,347

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
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 2,973

Rep: Reputation: 770Reputation: 770Reputation: 770Reputation: 770Reputation: 770Reputation: 770Reputation: 770
The command you used (rpm -qip "package.rpm") should tell you the distro, as in this output:
Vendor: CentOS
Packager: CentOS BuildSystem
Build Host: c6b18n2.bsys.dev.centos.org
 
1 members found this post helpful.
Old 03-26-2012, 11:58 AM   #5
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
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.
 
  


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
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 09:17 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration