Yum not working on client while able to do the ftp


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Yum not working on client while able to do the ftp
# 1  
Old 01-10-2015
Yum not working on client while able to do the ftp

Code:
1)check vsftpd service is running
service vsftpd status

2)mkdir -p /var/ftp/pub/Packages

Packages will contain all rpm packages

3)copy the xml file to Packages folder
#cp -arf /mnt/hgfs/share/RHEL_DVD/Packages /var/ftp/pub/Packages

4)install the 3 required rpm
rpm --nodeps -ivh deltarpm* --force
rpm --nodeps -ivh python-deltarpm* --force
rpm --nodeps -ivh createrepo* --force

5)cd .. i.e. move one directory back here it is /var/ftp/pub

6)create the repository
createrepo -g Packages/comps.xml .

7) vi /etc/yum.repos.d/server.repo
[server]
name=pub
baseurl=file:///var/ftp/pub
enabled=1
gpgcheck=0

8)clean the cache
#yum clean all

#yum makecache

#yum list all

#yum grouplist

#yum install squid

9) open config file of /etc/vsftpd/vsftpd.conf
anonymous_enable=YES  ---->make this change


10)configure SELinux Boolean
#chcon -R -t public_content_t /var/ftp/pub/

11) restart the service
#service vsftpd restart

note the ip of server : 192.168.122.20

this way i configured yum and it's working fine
################################################################

client side configuration
Code:
1)try ping and then do the ftp 
#ftp 192.168.122.20

2)create a new file /etc/yum.repos.d/client.repo

[client]
name=client
baseurl=ftp://192.168.122.20/pub
enabled=1
gpgcheck=0
3)#yum clean all

4)#yum makecache

5)#yum list all

6)#yum grouplist

7)#yum install squid

But on client side the yum configuration provides me with the error
Code:
[root@insider yum.repos.d]# yum makecache
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.

[Errno 14] PYCURL ERROR 67 - "Access denied: 500"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: client. Please verify its path and try again

no firewall is configured


Moderator's Comments:
Mod Comment Please use code tags for your code and data, thanks

Last edited by vbe; 01-10-2015 at 01:38 PM.. Reason: code tags...
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Installation of virt-manager while yum update and yum install rhvm does not work

I have downloaded RHEV-H 4.2 Red Hat Virtualization - Red Hat Customer Portal (RHVirtualization 4.2 Host and Manager iso). I uploaded the image and installed on an HP G9 server baremetal. I found I dont have a WAN/net connectivity later on HPG9 server. How can I still install virt-manager on... (1 Reply)
Discussion started by: Paras Pandey
1 Replies

2. Fedora

Yum repository not working in Fedora 16

Hi, while installing/updating package using yum I am getting (repomd.xml) error # yum list Loaded plugins: langpacks, presto, refresh-packagekit http://mirror.cse.iitk.ac.in/fedora-archive/fedora/linux/fedora/linux/releases/16/Everything/x86_64/os/repodata/repomd.xml: HTTP Error 404 -... (12 Replies)
Discussion started by: muzaffar.k
12 Replies

3. Red Hat

Yum is not working - certificate expired error

In my RHEL 5.3, i686 server, I am facing the following error, whenever I am using any yum command - "up2date_client.up2dateErrors.SSLCertificateVerifyFailedError: The certificate is expired. Please ensure you have the correct certificate and your system time is correct." Please help (2 Replies)
Discussion started by: atanubanerji
2 Replies

4. Red Hat

Yum client configuration error

Dear concern, I want to configure a yum client node. Yum configuration file (/etc/yum.repos.d/) is given below: # cat server.repo name=rhel6 baseurl=ftp://192.168.225.3/pub/Packages/ enabled=1 gpgcheck=0 We got following error message while executing yum list command. # yum clean... (1 Reply)
Discussion started by: makauser
1 Replies

5. Red Hat

Nslookup working but ping not working at windows client

Hi Team we have created a DNS server at RHEL6.2 environment in 10.20.203.x/24 network. Everything is going well on linux client as nslookup, ping by host etc in entire subnet. We are getting problem in windows client as nslookup working as well but not ping. all the firewall is disabled and... (5 Replies)
Discussion started by: boby.kumar
5 Replies

6. SuSE

Yum update not working from spacewalk server

Hello, I have registered an SLES11SP1 server with my spacewalk server however when I perform a 'yum repolist', I do not see my spacewalk server as one of the available repositories. So when I perform yum update (any-package), it does not find an update available. HOwever within the Spacewalk GUI... (3 Replies)
Discussion started by: s ladd
3 Replies

7. Red Hat

Yum repository linking to ftp site of Redhat

I have a query that does Redhat have the link to the yum repository on its FTP site. In my environment, I have the file rhel-debuginfo.repo which has - baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo. I hope, my question is clear that is there a... (5 Replies)
Discussion started by: RHCE
5 Replies

8. UNIX for Advanced & Expert Users

YUM GROUPLIST not working on SLES 11

I have a SLES 11 install with yum also installed. yum works when I try to install single packages. However, when i try the yum command: "yum grouplist" yum can not detect any groups. Is there some way to "enable" or install a grouplist feature in SLES 11 ? ==== details ==== SUSE Linux... (0 Replies)
Discussion started by: toro95037
0 Replies

9. UNIX for Dummies Questions & Answers

Yum.conf baseurl is not working.

Hi friends, This is my /etc/yum.conf. I think my basurl and updateurl is not correct. When I am installing something, it is giving error. My yum.conf file is this : Please help me. Thanks, Mukund (0 Replies)
Discussion started by: mukundranjan
0 Replies

10. Red Hat

Distribute packages to other client machines using yum

Hi, We have a 2 yum repository servers (2.6.18-92.el5 x86_64 x86_64 x86_64 GNU/Linux) that are RHN registered and should receive the latest patch/packages. The servers are configured somehow that the new updates are not downloaded automatically which I guess is in the yum-updatesd.conf file ... (3 Replies)
Discussion started by: jamba1
3 Replies
Login or Register to Ask a Question