LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   yum repository (https://www.linuxquestions.org/questions/linux-server-73/yum-repository-4175448109/)

vidyasagar6 02-01-2013 01:31 AM

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

acid_kewpie 02-01-2013 02:23 AM

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.


All times are GMT -5. The time now is 12:21 PM.