01-25-2016
Questions about running local YUM server
Im building a local yum server to update a handful of RHEL6 and RHEL7 servers, I'll be sharing out these updates via a local http webserver but I have a few questions.
1) it seem I am only able to download RHEL6 patches from a RHEL6 box and 7 patches from a 7 box which would mean I would have to dedicate 2 target servers for yum, this seems like a waste. My question is can I just setup a RHEL 7 box to download both 6 and 7 patches and server them from /rh6 and /rh7 directories on the webserver?
2) on a few of my servers even though /etc/yum.repos.d only contain files that point to my local repo, some of my boxes still reach out to the internet and pull stuff from "@rhel-6-server-rpms". Once it does this it will put an empty file called redhat.repo back in /etc/yum.repos.d is there anyway to prevent this? I've tried disabling that repo but that didnt work.
Any other tips you can share about running a local YUM to centralize your patching?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
how to get the list of process running in the server from the local machin n unix ? (3 Replies)
Discussion started by: guhas
3 Replies
2. Shell Programming and Scripting
Hi, I have googled for quite some time and couldn't able to get what exactly I am looking for.. My query is "how to stop a shell script which is running inside a remote server, using a script"??? can any one give some suggestions to sort this out. (1 Reply)
Discussion started by: mannepalli
1 Replies
3. Shell Programming and Scripting
Hi ,
How to check whether web server is running from remote machine
How to check whether web server is running on web server itself
Can any one help me soon (1 Reply)
Discussion started by: satheeshkr_cse
1 Replies
4. Red Hat
Hi Friends,
I have succesfully configured a local yum repository using ios image.
Please let me know how i can synchronize the local repository with RHN.
Is it possible, so that i can update the local repository with latest updates.
Regards,
Arumon (1 Reply)
Discussion started by: arumon
1 Replies
5. Red Hat
Hi friends,
I am using RHEL5 . I have tried to create the local repo using createrepo rpm.But i have been facing a lot of errors and it is not working well. Can somebody tell me how to create the local repo?
Thank you in advance.
Regards,
Prakashkumar.S (2 Replies)
Discussion started by: prakashkumar41
2 Replies
6. Linux
Hi
When i trying to update using yum, hangs at Running transaction test.
# yum update yum
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: ftp.oss.eznetsols.org
* extras: ftp.oss.eznetsols.org
* base: ftp.oss.eznetsols.org
* updates:... (2 Replies)
Discussion started by: anil8103
2 Replies
7. Red Hat
Hello friends
I was creating local yum server from dvd but fedora 17 used pool method , i mean similar to debian for packages i.e a,b....z
How can i create local yum server on fedora 17 like fedora 14,15,16
Any help
Thanks (1 Reply)
Discussion started by: rink
1 Replies
8. UNIX for Dummies Questions & Answers
Hi Guys,
I got below error while trying to install
yum localinstall libstdc++-4.4.7-3.el6.i686.rpm
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to... (1 Reply)
Discussion started by: heman96
1 Replies
9. Shell Programming and Scripting
Hi guys,
So i am in server1 and i have to login to server 2, 3,4 and run some script there(logging script) and output its result. What i am doing is running the script in server2 and outputting it to a file in server 2 and then Scp'ing the file to server1. Similarly i am doing this for other... (5 Replies)
Discussion started by: srkmish
5 Replies
10. Linux
Hello,
I need to know regarding setting up of Local repositories so that I can update or install packages on other RHEL servers.
In our environment we have many servers with different RHEL versions.
Like RHEL 7.2, RHEL 7.3, RHEL 7.4, RHEL 7.5
Arch = x86_64
I have setup one Repo server;... (0 Replies)
Discussion started by: SunshineMLinux
0 Replies
LEARN ABOUT CENTOS
yumdownloader
yumdownloader(1) yumdownloader(1)
NAME
yumdownloader - download RPM packages from Yum repositories
SYNOPSIS
yumdownloader [options] package1 [package2...]
DESCRIPTION
yumdownloader is a program for downloading RPMs from Yum repositories.
GENERAL OPTIONS
-h, --help
Help; display a help message and then quit.
--destdir DIR
Specify a destination directory for the download. Defaults to the current directory.
--urls Instead of downloading RPMs, list the URLs that would be downloaded.
--resolve
When downloading RPMs, resolve dependencies and also download the required packages.
--source
Instead of downloading the binary RPMs, download the source RPMs.
--archlist=ARCH1[,ARCH2...]
Limit the query to packages of given architecture(s). Valid values are all architectures known to rpm/yum such as 'i386' and 'src'
for source RPMS. Note that repoquery will now change yum's "arch" to the first value in the archlist. So "--archlist=i386,i686" will
change yum's canonical arch to i386, but allow packages of i386 and i686.
ADDITIONAL OPTIONS
Yumdownloader inherits all other options from yum. See the yum(8) man page for more information
EXAMPLES
Download the kernel RPM to /var/tmp:
yumdownloader --destdir /var/tmp kernel
List the URL for the kernel and kernel-smp RPMs:
yumdownloader --urls kernel kernel-smp
FILES
As yumdownloader uses YUM libraries for retrieving all the information, it relies on YUM configuration for its default values like which
repositories to use. Consult YUM documentation for details:
/etc/yum.conf
/etc/yum/repos.d/
/var/cache/yum/
SEE ALSO
yum.conf (5)
http://yum.baseurl.org/
AUTHORS
See the Authors file included with this program.
BUGS
There are of course no bugs, but should you find any, you should first consult the FAQ section on http://yum.baseurl.org/wiki/Faq and if
unsuccessful in finding a resolution contact the mailing list: yum-devel@lists.baseurl.org. To file a bug use http://bugzilla.redhat.com
for Fedora/RHEL/Centos related bugs and http://yum.baseurl.org/report for all other bugs.
Gijs Hollestelle 28 November 2005 yumdownloader(1)