CentOS 5 :: Yum Update Three Systems With Only One Download?
Mar 31, 2009
I have three CentOS machines which want updating from CentOS 5.2 to 5.3 sometime in the next week or two.I've always just done su -c 'yum update' on each machine, and let it slowly download and update a zillion pkgs. And every time I do that, I tell myself that *next* time, I'll figure out a better way.
I'd like to be a little more efficient this time, and have the 2nd & 3rd machines re-use some of the packages that the first machine downloaded. Two are workstations, and the third, a headless non-X11 fileserver, so they have different (but overlapping) sets of packages that they'll need. But the in-common packages comprise a lot of downloading that I would rather do only once. There's some way to set up a local yum repo on my server, mirror *everything* onto it, and update all machines from it. But that looks trickier, and way overkill for my purpose. Or I could just download ISOs, and work from there, but two machines don't have optical drives to boot from, and the ISOs contain tons of stuff that none of these systems need, so the download savings would be cancelled out.
A little reading of forums/manpages/etc, and I think I want to make use of yum localupdate (which I've never tried before), and do something along the lines of: 1.) Update the first workstation. It'll download all pkgs it needs overnight, and then update itself: [wkstn]$ su -c 'yum update'
2.) Make sure everything is working correctly.
3.) Grab every *.rpm from wkstn's /var/cache/yum and all its subdirs, and copy these to a temp dir on the server's raid: [wkstn]$ cp -a /var/cache/yum /server/raida/wkstn_yum_cache
4.) Update any server packages that the wkstn already downloaded.[server]$ su -c 'yum localupdate /raida/wkstn_yum_cache/'
5.) Update any server packages that the wkstn did NOT download: [server]$ su -c 'yum update'
6.) Deal with anything that broke on the server. The raid drivers, for example, always seem to need rebuilding, after kernel updates.
7.) Update the other workstation.
Question #0: Will this do what I want? I've never tried yum localupdate before, and the yum manpage doesn't elaborate much. Am I really barking up the wrong tree? Is there some much better way of doing this, for updating just 2 to 4 machines.
I have many servers running CentOS 5. I noticed yesterday many had a notificationthat updates were available. I clicked update and they all fail using the GUI. WhenI run yum update it shows packages to be upgraded and asks me to confirm. I enter yes but Yum fails on the first package. I wonder if this has something to do with therelease of 5.3?I get the same failure if I run a yum upgrade too.
Total download size: 465 M Is this ok [y/N]: y Downloading Packages:
Here at home I have several Ubuntu installations, mine, the kids computers and a couple of laptops. What I'm looking for is a solution or a pointer in the right direction to setup on our local Ubuntu server a sort of cache. Each day each Ubuntu on the network, checks for updates and downloads, and installs. What I'm looking for is a way for one machine to download the update and then the others to download from the local resource.
A sort of local cache to try and minimise everyone downloading straight from the net for pretty much the same updates. I did a emerge cache many years ago when I was using Gentoo, so I'm wondering what I can use/do here with Ubuntu as we are all loving this distro now.
I started the upgrade to 10.4 from 9.10 through the update manager. It started the update to 10.4. After downloading almost 95% of the update, it gave an error message of "could not download certain components. downloaded files will not be erased" and stopped the update. I restarted the PC, and started the update manager again. But now it does not show any option of update to 10.4. how do I continue or resume the update process? I just started using ubuntu about 15 days back. So, I am relatively new to this.
I had a spare computer (Dell Optiplex GX270) which I had installed Centos 5 on and have been setting up asterisk (telephony) on it. My main computer has broken down and I need to load Windows XP back on to the Optiplex.
I put the Windows XP disk in the drive and directed the bios to boot from the cd. I get the message "Please wait while windows inspects your current hardware configuration" and then after about 10 seconds the screen goes blank (the cd also slows down and then stops) and then the systems seems to just hang.
If I take the cd out and boot from the hard drive Centos loads normally; therefore I'm assuming my problem is not a defective hard drive.
I've spent quite a bit of time searching online for a solution and although there seems to be several different situations where the above can occur, I'guessing that my ssues are related to either partions/mbr and or the bios/cmos. I'm really new to Linux and not knowledgable on partitions and cmos so I'm hoping someone could help me out here.
I've checked in the bios and could not find an option to restore the settings to factory defaults. Should I pull the csmos datterry out? Does this restore the bios settings to factory defaults?
I came to a "weird" situation when I saw in yum log files that several centOS systems have been automatically updated via yum. I checked the following: 1. chkconfig for init services that could upgrade the system: only yum-updatesd 2. In the config file of yum-updatesd.conf the do_update function is set to no. 3. If an updated made manually by a user ..no. Where else should I look or how this update happened?
I am trying to create a workflow for upgrading various systems using kickstart. I was hoping folks can point me in the right direction.I have a system which already has Centos installed on it. However it is a stripped down version of Centos using a custom kickstart installer. Now I would like to upgrade these systems, using an updated kickstart file spec. I would like to be able to copy over required files into a partition on the system, make a change in the grub.conf, reboot the system and expect the system to use the kickstart file and the iso file located on a partition on the system to self upgrade the entire system.The partition which holds the iso on these systems may be raided, or it may be an LVM partition.
How do I specify in the kickstart file that the location of the iso is on an LVM partition? Is this even supported? I have tried specifiying the disk like so:
< -- isolinux/ks/harddrive.cfg -- > upgrade text harddrive --partition=mapper/VolGroup00-LogVol02 --dir=/isolinux
But the installer did not seem to like it. Instead of the iso, can I put the entire tree instead? Would that work?
I just set up a new CentOS 5.5 system (using the 5.5 DVD, yum updated all packages to latest) which unfortunately due to various issues and most critically availability, has an ATI-4350. The install went OK but X does not detect the card properly so it's using the slow VESA driver. I followed the instructions here [URL] to download and install the ATI driver. It appeared to be correctly installed but not used.
Display still detects my monitor and 4350 as unknown and using some "Vendor supplied driver". Yet under the "Dual Head" tab, if I would to enable it, the ATI-4350 comes up as an option, hence implying that the driver was corrected installed and the card is actually detected. I suspect it might have to do with my Xorg.conf, although trying to edit in several ways didn't make it work.
I have a number of CentOS servers with latest 5.xI have 3 nameservers in the resolv.conf files. All 3 nameservers test out fine when checking for domain lookups.I'm having some trouble with ns1 and shut it down.l None of the CentOS machines fail over to the ns2 & ns3 entries. Basically everything stops resolving even though the other 2 nameservers are alive and well.
On two Centos5 servers, yum gives a segmentation fault error when trying 'yum update' or 'yum check-update' after running 'yum clean' :
The error is the same for the other computer except while attempting to update the rpmforge repository. Nothing has really changed on the servers in some time and 'yum update' worked fine on each yesterday and I have no idea why they would both suddenly fail!
For some reason, when I do a yum check-update I get a list of no changed packages to install. If I follow this immediately with a yum update then it tries to install drbd83. I've tried a yum clean all and repeated the commands and get the same thing. This happens on both the machines that are set up to use DRBD. Just seems weird and I don't understand. Anyone got an explanation?
I have a error when i want to update my system via YUMI execute the next command.sh@ yum -y updateYou could try using --skip-broken to work around the problemYou could try running:package-cleanup --problems package-cleanup --dupes rpm -Va --nofiles --nodigestThe program package-cleanup is found in the yum-utils package.
I am using debian(lenny) on a pc coexisting with windows. I use grub to decide which o/s to boot.
I picked debian, logged in as a regular user. I selected "Administration" under the "System" tab and then selected "Update Manager". I had to provide the root password.
I was asked to insert Binary DVD-1 and was told to use smart update. I did at which time 16 files begun downloading at between 4400 B/s and 4800 B/s from the Security server. It looks like it is downloading a new linux image.
I use Fedora 14 32 bit at home and I d not have internet in home , so I download all packages are depend on Fedora 14 in my work place and move all of them to home by USB flashI use rsync for download all packages , in home I make local repo and install all packages I need by use local repo ,right now I want update my kernel , and I want use rsync foe download kernel update for fedora 14 .How I can do this , I want rsync only download update are depend on kernel and does not download other thing How I can do this ?
I am using Fedora 12 Live Disk to post this because Fedora 15 seems to be missing the Network Manager, which is what I need to set up my Dell 1525 laptop.I cannot update nor download anything in Fedora 15 because I cannot get on line.I can't find the Network Manager in F-15.I have the Intel PRO?Wireless 3945ABG internal Mini Card.
I finally gave in and took the plunge - I upgraded from kubuntu 9.10 to 10.04. I knew better but I did it anyway. I got a few fglrx-related error messages during upgrade, but it was too late to do anything. Here's the problem - I can't update or download any software using either Kpackagekit or apt-get. If I try I get an error message about unmet dependencies.
My internet connection is one where I have to pay according to the amount of data transferred and Ubuntu updates require large downloads. I was wondering if there was some way to export the list of packages required for an update in ubuntu and then go and download them from another PC. (The other PC in question will be running windows).I'd love to know of any apps that can do this ..If there aren't any can someone tell me if there is a way to do this? I am just getting used to Linux but I still have no experience at all with writing shell scripts (which I suppose would be needed for this sort of thing).
So in summary, this is what I want. Synaptic (or any other package manager in Linux) should generate a file with all the packages that should be downloaded. A program on the PC with a better internet connection then interprets this file and downloads the packages creating a local copy of the packages. These local copies are then transferred to the Linux box which required the updates and the updates are applied..
I am looking for the CentOS LAMP system (all in one) that can fit onto a CD or a DVD. When I check the download section there are 6 files of 700MBs or so. How come there are CentOS versions of Asterisk (for example Trixbox) that has LAMP and CentOS 5 and yet fits on one CD?
Is that a stripped down version? if so, can you please guide me to a simple CentOS version on this site so that I can download it and build LAMP on it?
W: Failed to fetch [URL] Hash Sum mismatch E: Some index files failed to download, they have been ignored, or old ones used instead. Tried 3 different mirrors all have the same error. I assume this is the same issue we had a while back where one package was messing things up. Mirrors I my sources.list
My internet connectivity is not that fast. Since I am using Squeeze, there will be very frequent updates.
My problem is that I am not able to download all the update in one go and to complete the upgrade. As the number of files to be downloaded and upgraded increases, I can't seem to be able to reach the end point to complete any update.
Can aptitude upgrade just the files that have been downloaded so far, and resume downloading the rest in the next attempt? MS Windows will update the OS with whatever patches downloaded without waiting for the rest if I prematurely shutdown the pc.
I recently installed Ubuntu 9.10 on an old computerd lying around and have been pleasantly surprised by it.I had a small problem with firefox not connecting to the internet but I managed to fix this by disabling ipv6 in about:config.The problem I now have is that update manager fails to download updates and gives a message saying failed to fetch several files.I'm connected to the internet via a wired router