Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
However i have yum installed and whenever i run them i get below output.
Code:
# yum install rpmdevtools rpmlint
Setting up Install Process
Parsing package install arguments
No package rpmdevtools available.
No package rpmlint available.
Nothing to do
However i tried using rpm-devel package.
Code:
# yum install rpm-devel
Setting up Install Process
Parsing package install arguments
Package rpm-devel-4.4.2.3-9.el5.i386 already installed and latest version
Nothing to do
Is rpm-devel and rpmdevtools different as i m not able to execute other commands such as rpmdev-setuptree.
m i heading in right direction?
Click here to see the post LQ members have rated as the most helpful post in this thread.
What distro and version are you using? And are your repositories set up correctly? You might need the epel repositories enabled if you don't have them already. I've just checked on a CentOS 5.7 server and in the base repositories those packages are not available but they are in the EPEL repos. Have a look here with regards to the EPEL repos under CentOS.
What distro and version are you using? And are your repositories set up correctly? You might need the epel repositories enabled if you don't have them already. I've just checked on a CentOS 5.7 server and in the base repositories those packages are not available but they are in the EPEL repos. Have a look here with regards to the EPEL repos under CentOS.
Kind regards,
Eric
Code:
# lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: OracleVMserver
Description: Oracle VM server release 2.2.0
Release: 2.2.0
Codename: n/a
Able to get a distribution where rpmbuild is already there but not able to run rpmdev-setuptree command .
As per the article this command needed for following purpose. http://fedoraproject.org/wiki/How_to...lo_RPM_package
"sets up a RPM build area in your ~/rpmbuild. This directory will contain several subdirectories, for the project source code, RPM configuration files and for the resulting source and binary packages."
Code:
# rpmbuild
rpmbuild: no spec files given for build
# rpmdev-setuptree
bash: rpmdev-setuptree: command not found
$ sh .rpmmacros
.rpmmacros: line 1: fg: no job control
.rpmmacros: line 2: fg: no job control
.rpmmacros: line 3: fg: no job control
.rpmmacros: line 4: fg: no job control
.rpmmacros: line 5: fg: no job control
.rpmmacros: line 6: fg: no job control
.rpmmacros: line 7: fg: no job control
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Quote:
But whenever I execute the file it says.
'.rpmmacros' : It's a text file. Never to be run or seen. ( Hidden file.)
Please do :
1) touch .rpmmacros ( creates an empty file, if not already present.)
2) gedit .rpmmacros
.... then copy / paste the text into the file,
and edit <username> to actual user.
will the rpm developed on this distribution work on other rpm supported systems?
Quote:
Originally Posted by Satyaveer Arya
Ofcourse.
No, not 'ofcourse'. It depends on what's in the rpm. For example if the rpm contains binaries that a dynamically linked to shared libraries that aren't in the rpm then the rpm is only going to work on other systems which have the same versions (or compatible) of those libraries in the same locations. If the rpm depends on other packages then the rpm will only work on other systems where those packages are available.
I use SLED and openSUSE. Some rpms built for openSUSE will work on SLED but some won't. It very much depends on the rpm and which version of openSUSE it was built for and which version of SLED you're trying to use it on. I once found some software that was only available as an rpm which it was indicated was for use on RedHat. As it happened it worked on the version of SLED I was using, but there was no guarantee that it would.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.