Sponsored Content
Top Forums UNIX for Advanced & Expert Users Centos - prevent yum update from breaking package configurations Post 302955938 by Aia on Wednesday 23rd of September 2015 09:29:18 PM
Old 09-23-2015
Quote:
Originally Posted by coolatt
i recently run on a centos server and this replaced the current config files with a new one.

this happened with but i think it can happen with other packages as well.

please advise how such issues can be prevented from happening again.
The first preventive measure would be you: before updating check what does it want to update and where the update comes from (what repo is using). Do not accept updates at willy-nilly

The second preventive measure would be you: learning how to manage yum.
Keywords like: exclude, enable, disable, protect and priority might assist you in managing packages update.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How do I verify the integrity of a package? And how do I configure yum to add a site

How do I verify the integrity of a package? And how do I configure yum to add a site (3 Replies)
Discussion started by: 3junior
3 Replies

2. Linux

update packages with yum

Hello Is there a way to update a package to a specific version with yum? So, I have version 1 of package A installed. Versions 2 and 3 are available, but I only want to upgrade to version 2. Any assistance would be appreciated. Thanks! (1 Reply)
Discussion started by: garskoci
1 Replies

3. Red Hat

Yum Update

I am using Cent OS 5 i need to update proxy server address in yum, i don't know where to update and how exactly i need to specify the proxy address can anyone help me in the issue. (2 Replies)
Discussion started by: praneel2k
2 Replies

4. Red Hat

Remote installation of rpm package (Using YUM)

Hi, I have configured YUM repository on a server and we have 10 linux machine (clients). Is there any way we can install a package on all the 10 machines from YUM repository server? Please help me. (7 Replies)
Discussion started by: uday123
7 Replies

5. UNIX for Dummies Questions & Answers

Centos commands: Yum Upgrade versus Yum update

Hi, I would like to know the difference between YUM UPDATE and YUM UPGRADE. The man pages say upgrade is same as update with the obsolete option. And by default it says the obsolete option is turned on, which would make them equivalent. Does not say what obsolete does. Can someone please... (3 Replies)
Discussion started by: mojoman
3 Replies

6. Linux

Difference in binary file sizes after deploying package via yum/rpm

Hi Guys, I have an issue whereby I package up an rpm and when I deploy it, the binary filesizes differ from what I packaged up from the SOURCE directory. from source - -rwxrwxr-x 1 user group 685156 Sep 26 15:50 cybAgent.bin after install - -rwxr-xr-x 1 user group 683388 Oct 16 11:10... (4 Replies)
Discussion started by: gazza-o
4 Replies

7. Shell Programming and Scripting

Yum update using expect

Hi, I have an expect script which connects to whatever Ip is passed to it. It performs a variety of tasks, all of which it completes fine except for the yum updates. For some reason it sends commands early, during the yum update. Any ideas? Thanks. (2 Replies)
Discussion started by: meor
2 Replies

8. Red Hat

Red Hat 6 yum install no package availiable

I have installed Red Hat Enterprise Linux 6.1 server, it is registered but not subscribed. If I install using yum every time it is showing that no package available, how to resolve it? (2 Replies)
Discussion started by: ainstin
2 Replies

9. Fedora

Yum update error

Hello, I issued # yum update and received below error. Any idea? # yum update Loaded plugins: fastestmirror, universal-hooks Setting up Update Process Loading mirror speeds from cached hostfile * cpanel-addons-production-feed: 204.10.37.146 * base: mirrors.oit.uci.edu * extras:... (3 Replies)
Discussion started by: feroccimx
3 Replies

10. 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
yum(8)																	    yum(8)

NAME
yum - Yellowdog Updater Modified SYNOPSIS
yum [options] [command] [package ...] DESCRIPTION
yum is an interactive, automated update program which can be used for maintaining systems using rpm command is one of: * install package1 [package2] [...] * update [package1] [package2] [...] * check-update * upgrade * remove [package1] [package2] [...] * list [...] * info [...] * provides [...] * clean [packages | headers | old-headers | all] Unless the --help or -h option is given, one of the above commands must be present. install is used to install the latest version of a package or group of packages while ensuring that all dependencies are satisfied. If no package matches the given package name(s), they are assumed to be a shell glob and any matches are then installed. update If run without any packages, update will update every currently installed package. If one or more packages are specified, Yum will only update the listed packages. While updating packages, yum will ensure that all dependencies are satisfied. If no package matches the given package name(s), they are assumed to be a shell glob and any matches are then installed. check-update Implemented so you could know if your machine had any updates that needed to be applied without running it interactively. Returns exit value of 100 if there are packages available for an update. Also returns a list of the pkgs to be updated in list format. Returns 0 and no packages are available for update. upgrade takes no arguments, this performs a complete upgrade of the system - good for distro-version changes as it includes packages obso- leting other packages in its updating calculations. remove is used to remove the specified packages from the system as well as removing any packages which depend on the package being removed. list can be used to list various information about available packages; more complete details are available in the List Options section below. provides can be used to find out which package provides some feature or file. Just use a specific name or a file-glob-syntax wildcards to list the packages available or installed that provide that feature or file. info can be used to list a description and summary information about available packages; takes the same arguments as in the List Options section below. clean is used to clean up various things which accumulate in the yup cache directory over time. More complete details can be found in the Clean Options section below. GENERAL OPTIONS
Most command line options can be set using the configuration file as well and the descriptions indicate the necessary configuration option to set. -h, --help Help; display a help message and then quit. -y Assume yes; assume that the answer to answer to any question which would be asked is yes. Configuration Item: assume-yes -r Replace conflicting files (equivalent to the RPM option of '--replacefiles --force'). Attention, this has a high 'shoot your own foot' possibility. Configuration Item: replacefiles -c [config file] Specifies the config file location. -d [number] Sets the debugging level to [number] - turns up or down the amount of things that are printed. -e [number] Sets the error level to [number] 0 - 10. 0 means print only critical errors about which you must be told. 1 means print all errors, even ones that are not overly important. 1+ means print more errors (if any) -e 0 is good for cron jobs. -t Tells yum to be tolerant of errors on the command line with regard to packages on the commandline. For example: if you request to install foo, bar and baz and baz is installed; yum won't error out complaining that baz is already installed. -R [time in minutes] Sets the maximum amount of time yum will wait before performing a command - it randomizes over the time. -C Tells yum to run entirely from cache - does not download or update any headers unless it has to to perform the requested action. LIST OPTIONS
The following are the ways which you can invoke yum in list mode. Note that all list commands include information on the version of the package. yum list [available] list all packages in the yum repositories available to be installed. yum list updates list all packages with updates available in the yum repositories. yum list [args] list the packages specified by args. If an argument does not match the name of a package, it is assumed to be a shell-style glob and any matches are printed. yum list installed list the packages specified by args. If an argument does not match the name of an available package, it is assumed to be a shell-style glob and any matches are printed. yum list extras list the packages installed on the system that are not available in any yum repository listed in the config file. CLEAN OPTIONS
The following are the ways which you can invoke yum in clean mode. yum clean packages Eliminate any cached packages from the system. Note that packages are not automatically deleted after they are downloaded. yum clean headers Eliminate all of the files which yum uses to determine the remote availablility of packages. Using this option will force yum to download all the headers the next time it is run. yum clean oldheaders Eliminate the old headers that yum no longer needs to determine the remote availablility of packages. yum clean [all] Runs yum clean packages and yum clean oldheaders as above. MISC
Proxy configuration If you would like to use a proxy with yum you can simply set a shell environment variable of http_proxy. Set it to the url for your proxy. Ex: "http://your_proxy:port/" FILES
/etc/yum.conf /var/cache/yum/ SEE ALSO
yum-arch (8), yum.conf (5) AUTHORS
Seth Vidal <skvidal@phy.duke.edu> BUGS
There of course aren't any bugs, but if you find any, they should be sent to the mailing list: yum@dulug.duke.edu Seth Vidal 2002 Jun 8 yum(8)
All times are GMT -4. The time now is 06:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy