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 |
Quote:
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. . |
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 ?? |
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 |
@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. |
All times are GMT -5. The time now is 11:03 AM. |