LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-01-2013, 01:31 AM   #1
vidyasagar6
Member
 
Registered: Nov 2012
Posts: 36

Rep: Reputation: Disabled
yum repository


I Configured yum repository like this

# mkdir -p /var/www/html/cdrom/
# cd /var/www/html/cdrom
# createrepo /var/www/html/cdrom
# yum clean all

Created a file /etc/yum.repos.d/file.repo which should have the contents as mentioned below :
[RHEL-Repository]
name=RHEL repository
baseurl=file:///var/www/html/cdrom
enabled=1
gpgcheck=0
and saved the file

Edited in etc/httpd/conf/httpd.conf file:
ServerAdmin root@10.10.3.122(IP address of server)
DocumentRoot /var/www/html
ServerName <10.10.3.122>

# service httpd start

Later i installed tiger vnc by using yum install vnctiger

after that i checked in /var/www/html/cdrom there is no package there.

Actually my concern is that if i install any package .it should be saved in particular directory .So that i can use for some other servers to install packages.

Please help me
 
Old 02-01-2013, 02:23 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
this makes no sense at all to me. You think that the packages you install on a client will somehow end up in that server repository?? No. that's not at all correct. You need to put content there yourself, and those initial commands don't go together at all. createrepo and yum have zero common ground in terms of why you;'d actaully use them at any given moment.

If you want to save the pacakges you download, you'd set keepcache=1 on yum. That should then keep all downloaded packages in /var/cache/yum/updates/packages and if I'm guessing you then want to make those packages available internally too, you can the handle makign a repo out of thoe contents of that directory I guess.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. glowe Linux - Newbie 8 01-13-2016 10:55 PM
yum repository edwardcode Linux - Software 1 05-05-2010 10:54 AM
yum fails with error: Cannot retrieve repository metadata (repomd.xml) for repository dmendonsa Fedora 6 02-10-2010 07:23 PM
Redhat 5.1 Yum Repository vs Fedora x.x Yum Repository lead2gold Linux - Software 1 05-22-2008 02:19 PM
Yum repository for 10.1 mijohnst SUSE / openSUSE 6 04-11-2006 08:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration