I think it’s not too late to play with Redhat Enterprise Server :-). Need a kind of a distraction from Solaris, and other Ora** HW/SW product.. hahaha.
I just install RHEL version 6.4. trying to use yum command to install rpm-build package, but it showing below error messages:
[root@redhat64 ~]# yum install rpm-build Loaded plugins: product-id, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Setting up Install Process No package rpm-build available. Error: Nothing to do
By default, if you check with “yum repolist all” command, there are 2 repo source with status disabled:
[root@redhat64 ~]# yum repolist all Loaded plugins: product-id, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. repo id repo name status rhel-source Red Hat Enterprise Linux 6Server - x86_64 - Source disabled rhel-source-beta Red Hat Enterprise Linux 6Server Beta - x86_64 - Source disabled repolist: 0 [root@redhat64 ~]#
Check the Redhat repository configuration file, there are two repo name, both are pointed to redhat website:
[root@redhat64 ~]# cd /etc/yum.repos.d/ [root@redhat64 yum.repos.d]# ls rhel-source.repo [root@redhat64 yum.repos.d]# more rhel-source.repo [rhel-source] name=Red Hat Enterprise Linux $releasever - $basearch - Source baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release [rhel-source-beta] name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source baseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/$releasever/en/os/SRPMS/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release [root@redhat64 yum.repos.d]#
We need to register to RHN in order to use those repo source, even you try to enable the repo, by editing the line “enable=0” to “enable=1” but it won’t work. The easy way is build a local repository from your current redhat’s DVD / ISO file:
# mkdir /cdrom
# mount /dev/cdrom /cdrom
Rename existing repo file “rhel-source.repo” to “rhel-source.repo.backup” or whatever you want.
Create another repo file name, example “dvd.repo”:
# vi dvd.repo
[dvd-source]
name=RHEL 6.4 dvd repo
baseurl=file:///cdrom/Server
enabled=1
gpgcheck=0
Check your repo config, Test and try to install the package:
# yum repolist
# yum install rpm-build
[root@redhat64 yum.repos.d]# yum repolist
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id repo name status
dvd-source RHEL 6.4 dvd repo 3,648
repolist: 3,648
[root@redhat64 yum.repos.d]# yum install rpm-build
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
dvd-source | 3.9 kB 00:00 ...
dvd-source/primary_db | 3.1 MB 00:00 ...
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package rpm-build.x86_64 0:4.8.0-32.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================================================
Package Arch Version Repository Size
=========================================================================================================================
Installing:
rpm-build x86_64 4.8.0-32.el6 dvd-source 126 k
Transaction Summary
=========================================================================================================================
Install 1 Package(s)
Total download size: 126 k
Installed size: 315 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : rpm-build-4.8.0-32.el6.x86_64 [ ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [#### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [##### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [###### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [####### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [######## ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [################# ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [######################### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [############################### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [################################# ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [################################### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [#################################### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [######################################### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [########################################## ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [########################################### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [############################################ ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [############################################## ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [################################################ ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [################################################# ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [######################################################## ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [######################################################### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [########################################################## ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [################################################################ ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [################################################################## ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [################################################################### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 [#################################################################### ] 1/1
Installing : rpm-build-4.8.0-32.el6.x86_64 1/1
dvd-source/productid | 1.7 kB 00:00 ...
Verifying : rpm-build-4.8.0-32.el6.x86_64 1/1
Installed:
rpm-build.x86_64 0:4.8.0-32.el6
Complete!
[root@redhat64 yum.repos.d]#
##################
We can also build a local http or ftp repository server, will talk later on another post.
Thanks! Worked for me
Beautiful!
Thank you!
Thanks!!!
Worked for me
This works like a charm, had a hard time understanding the issue but after following this blog I must say new and important thing learned. Thanks Saif
Pingback: Wordpress Setup – home
it works thank you very much!
thank, 🙂
when im trying to mount directory i get read of “mount: you must specify the filesystem type” new to linux so go easy on me.
using an iso of red hat enterprise 6.5
To mount an ISO file:
mount -t iso9660 -o loop [iso_file_location] [mount_point]
exp:
mount -t iso9660 -o loop /home/aziz/rhel-server-7.0-x86_64-dvd.iso /mnt/cdrom/
Pingback: How To Configure Yum On Redhat 6 | Goods News
It works cool. Thank you sir
Bonjour tout le monde !désolé pour ce réveil un peu tardif mais serait il possible de validé ma Team expresse après 2 mois de compétition?alors voila,capitaine : Djokolieutenants :Berdych, Watrinkaquartiers-maîwres : Bellucci, Troicky, Dolgopolovsimples matelots : Haase, Kukushkin, Del Potro, Gonzalez F
Pingback: Configuring Red Hat Enterprise Linux 7.2 for YUM without a Redhat Subscription | tenbulls.co.uk
Thanks it worked and so neatly documented
where is post about build a local http or ftp repository server, ?
Many ThanX. It worked like a charm.
Thank you very much — it worked perfectly! 🙂
i get this error
yum install rpm-build
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
file:///cdrom/Server/repodata/repomd.xml: [Errno 14] Could not open/read file:///cdrom/Server/repodata/repomd.xml
Trying other mirror.
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package rpm-build.x86_64 0:4.8.0-32.el6 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
rpm-build x86_64 4.8.0-32.el6 dvd-source 126 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 126 k
Installed size: 315 k
Is this ok [y/N]: y
Downloading Packages:
Error Downloading Packages:
rpm-build-4.8.0-32.el6.x86_64: failure: ../Packages/rpm-build-4.8.0-32.el6.x86_64.rpm from dvd-source: [Errno 256] No more mirrors to try.
Hi, I have redhat server 6.4 and i have installed it on vmware
i followed your tutorial To Install redhat package with YUM command without RHN
however i get the following error
Error Downloading Packages:
rpm-build-4.8.0-32.el6.x86_64: Cannot find a valid baseurl for repo: dvd-source
http://pastebin.com/935K8tqi
Good to see real expertise on display. Your coutribntion is most welcome.
Method post. Â So far we’ve looked at three of the five GROW Method principles (Save Food, Seasonal, and Less), and although they ar#&7e821n;t related to crafts or sewing, they are important to our
thanks.
Thanks Aziz,much appreciated
Not works for me:
I have :
dvd.repo
[dvd-source]
name=RHEL 7.0 dvd repo
baseurl=file:/cdrom/
enabled=1
gpgcheck=0
yum repolist
yum repolist
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id repo name status
dvd-source RHEL 7.0 dvd repo 0
repolist: 0
*check again on this line:
baseurl=file:/cdrom/
*it should be:
baseurl=file:///cdrom/Server
make sure you mount RHEL 7 ISO to /cdrom already