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.
Dear all,
I have just installed redhat enterprise 6, to my surprise I didn't find Midnight commander" mc, I can't live without this tool, I tried "yum install mc", I get "no package", I googled for 3 days now and couldn't find a solution. Please help me, many thanks.
Nour.
Thank you knudfl,
Yes of course I am registered and my account is activated, but when I type "yum install mc", it doesn't install anything, it gives me:.....no package.
So I will download the version that you sent me and will try to install it, many thanks.
Nour.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
I'd guess that 'mc' is in a repo, you haven't enabled.
( Please ask Redhat : That's what the support is for.)
Be aware, that the package you can download from the above link,
is source code. # rpmbuild --rebuild mc-4.7.0.2-3.el6.src.rpm
will create an installable package.
If the current RHEL6 doesn't carry Midnight Commander (which would be odd considering they do carry the .src.rpm) then IIGC EPEL and other repo's may carry RHEL6 addons already. See their respective web sites or for instance http://www.linuxquestions.org/questi...tories-811575/ for an example yum config.
Dear all,
Thank you very much for your help, another maybe trivial question sorry about that, when I type: rpm -ivh mc-4.7.0.2-3.el6.src.rpm, I get this:warning: group mockbuild does not exist - using root.
I have spent the whole day googling, found no solution. I have even tried to download the .tar.gz file of mc but then once unzipped and entered the directory mc, I run ./configue, I get :configure: error: cannot find install-sh or install.sh in config.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
rpm -Uvh mc-4.7.0.2-3.el6.src.rpm will unpack the source code files
to probably /usr/src/redhat/SOURCES/
( 'rpm -ivh' is an unusual command : yum uses 'rpm -Uvh'.)
The idea is to run # rpmbuild --rebuild mc-4.7.0.2-3.el6.src.rpm
or : rpmbuild -bb mc.spec , to get an installable package.
The information "group mockbuild does not exist" comes from the
cpio archive inside the package : Tells, who the packager is.
Please do not download an mc.4.7.0.2.tar.bz2 : You already have it in
/usr/src/redhat/SOURCES/
Dear knudfl,
I am embarassed to post another question, when I type as you told me :rpmbuild --rebuild mc-4.7.0.2-3.el6.src.rpm , I get: bash: rpmbuild: command not found. So I typed : yum install rpm ,the answer I get is: Package rpm-4.8.0-12.el6.x86_64 already installed and latest version. I tried to run : locate rpmbuild, I found it in :/usr/share/man/ja/man8/rpmbuild.8.gz , do I have to configure it from there then make and make install.
Also I couldn't find the directory redhat, I found the directory rpmbuild in : /root/rpmbuild/SOURCES.
I am honestly confused.
Kind regards.
Nour.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Installing 'rpm-build' : # yum install rpm-build
There are some search functions that are nice to know.
( Please read 'man yum', etc. http://www.centos.org/docs/5/html/yum/ )
1) yum search rpm : Will also include rpm-build.
2) yum provides */rpmbuild : Will reply /usr/bin/rpmbuild + the package name.
I am frankly puzzled, I have made a lot of progress thanks to knudfl, I have built the rpmbuild tree as suggested:
mkdir -p --verbose $HOME/rpms/{BUILD,RPMS,SOURCES,SPECS,SRPMS,tmp} && etc...
all went well, but when I execute rpmbuild --rebuild mc-4.7.0.2-3.el6.src.rpm , I get: bash: rpmbuild: command not found, I sourced the .bashrc but still the same problem. What puzzled me most is the fact that I don't have /usr/src/redhat/SOURCES, I only have /usr/src and when I run ls I get : kernel and debugs but not redhat. Also mc.4.7.0.2.tar.bz2 is in /home/my name/rpmbuild/SOURCES but not in /usr/src/redhat/SOURCES.
This might be trivial for many of you but I can't see it, so any help please will be appreciated.
Nour.
Hi,
When I run: yum install rpm-build, this is what I get: No package rpm-build available.
Does that mean that I have to look for it from somewhere else and not redhat enterprise linux 6.
Dear John,
when I run yum search rpm* , I get: No matches found for: rpmbuild, yes I agree that it is strange that redhat didn't put mc in the extras, in particular for a newcomer like me, it is true that I am learning which is good but sometimes one wants to give up but I won't.
Regards. Nour.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.