Tag Archives: yum

Yum Installation Steps and [Errno 14] PYCURL ERROR 7 in RED HAT 7

YUM install or configuration Steps on Linux

Check the available space on the Linux CD to configure yum.

# Mount the CDROM #
# mount -t iso9660 /dev/sr0 /mnt
# df -h /mnt
Filesystem            Size  Used Avail Use% Mounted on
/dev/sr0              3.2G  3.2G     0 100% /mnt

Set up the Yum Server for installing packages

1) Install the FTP Server and Createrepo from the required packages.

[root@server Packages]# pwd
/mnt/Packages

Install the ftp server:

[root@server Packages]# rpm -ivh vsftpd-2.2.2-6.el6.x86_64.rpm
warning: vsftpd-2.2.2-6.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
1:vsftpd                  ########################################### [100%]

Install the createrepo Server:

[root@server Packages]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm
warning: createrepo-0.9.8-4.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY

error: Failed dependencies:
deltarpm is needed by createrepo-0.9.8-4.el6.noarch
python-deltarpm is needed by createrepo-0.9.8-4.el6.noarch

Install the deltarpm needed by createrepo package:

[root@server Packages]# rpm -ivh deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
warning: deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
1:deltarpm               ########################################### [100%]

[root@server Packages]# rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
warning: python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing…                ########################################### [100%]
1:python-deltarpm        ########################################### [100%]

[root@server Packages]# rpm -ivh createrepo-0.9.8-4.el6.noarch.rpm
warning: createrepo-0.9.8-4.el6.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing…                ########################################### [100%]
1:createrepo             ########################################### [100%]
[root@server Packages]#

2) Copy the Packages from CDROM to /var/ftp/pub folder. The folder will be automatically created once we install the vsftpd rpm.

[root@server /]# cp -r /mnt/Packages /var/ftp/pub/
[root@server /]#

3) Create a repodata which will be used as a repository of packages for Yum configuration [including master itself and clients].

[root@server Packages]# createrepo -v .
1/3431 - augeas-libs-0.7.2-3.el6.i686.rpm
2/3431 - hunspell-vi-0.20080604-3.1.el6.noarch.rpm
3/3431 - urw-fonts-2.4-10.el6.noarch.rpm
|
|
|
|
3429/3431 - libusb-0.1.12-23.el6.x86_64.rpm
3430/3431 - tigervnc-server-1.0.90-0.10.20100115svn3945.el6.x86_64.rpm
3431/3431 - kde-l10n-Spanish-4.3.4-5.el6.noarch.rpm

Saving Primary metadata
Saving file lists metadata
Saving other metadata
[root@server Packages]#

4) Configuration of YUM Master.

[root@server /]# cd /etc/yum.repos.d
[root@server yum.repos.d]# vi server.repo

[server]
name=server.hp.com
baseurl=ftp://192.168.24.145/pub/Packages        OR         baseurl=file:///var/ftp/pub/Packages
enabled=1
gpgcheck=0

To test, run the command:
root@server /]# yum update
This system isn’t registered with RHN, so RHN support is disabled. Packages from the server load, but no updates are available. For a full list of packages, use:
root@server /]# yum list all
This will show both installed and available packages. A common error when running yum update or yum list all is:
[root@server /]# yum update OR yum list all

This indicates that the system can’t access the repository’s metadata. The likely cause is improper FTP configuration, which needs to be set up to resolve the issue.