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

YUM install or configuration Steps on Linux

Check the space on the cd of linux for configure the 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

Configure the Yum Server for package installation

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

[root@server yum.repos.d]#

5) Time to Test

[root@server /]# yum update
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
server                    | 1.3 kB     00:00
server/primary            | 1.6 MB     00:00
server                    3431/3431
Setting up Update Process
No Packages marked for Update
[root@server /]#

List all the package repository with following command:

[root@server /]# yum list all
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Installed Packages
ConsoleKit.x86_64                      0.4.1-3.el6                         @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0
ConsoleKit-libs.x86_64                 0.4.1-3.el6                         @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0
ConsoleKit-x11.x86_64                  0.4.1-3.el6                         @anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0
|
|
|
Available Packages
DeviceKit-power.i686                   014-1.el6                           server
ElectricFence.i686                     2.2.2-28.el6                        server
ElectricFence.x86_64                   2.2.2-28.el6                        server
GConf2.i686                            2.28.0-6.el6                        server
|
|
|
zlib.i686                              1.2.3-25.el6                        server
zlib-devel.i686                        1.2.3-25.el6                        server
zlib-devel.x86_64                      1.2.3-25.el6                        server
zsh.x86_64                             4.3.10-4.1.el6                      server
[root@server /]#

Common Error

[root@server /]# yum update  OR yum list all
Loaded plugins: refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
ftp://192.168.24.145/pub/Packages/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - ""
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: server. Please verify its path and try again
[root@server /]#

This error comes when server is not able to ftp to the repository baseurl.
Possible cause is that ftp is not configured on the server. Configuring ftp will resolve the issue.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.