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
reposync(1)															       reposync(1)

NAME
reposync - synchronize yum repositories to a local directory SYNOPSIS
reposync [options] DESCRIPTION
reposync is used to synchronize a remote yum repository to a local directory, using yum to retrieve the packages. OPTIONS
-h, --help Display a help message, and then quit. -c CONFIG, --config=CONFIG Config file to use (defaults to /etc/yum.conf). -a ARCH, --arch=ARCH Act as if running the specified arch (default: current arch, note: does not override $releasever. x86_64 is a superset for i*86.). --source Also download .src.rpm files. -r REPOID, --repoid=REPOID Specify repo ids to query, can be specified multiple times (default is all enabled). -t, --tempcache Use a temp dir for storing/accessing yum-cache. -p DESTDIR, --download_path=DESTDIR Path to download packages to: defaults to current directory. -g, --gpgcheck Remove packages that fail GPG signature checking after downloading. exit status is '1' if at least one package was removed. -u, --urls Just list urls of what would be downloaded, don't download. -l, --plugins Enable yum plugin support. -n, --newest-only Download only newest packages per-repo. -q, --quiet Output as little information as possible. EXAMPLES
Sync all packages from the 'updates' repo to the current directory: reposync --repoid=updates Sync only the newest packages from the 'updates' repo to the current directory: reposync -n --repoid=updates Sync packages from the 'updates' and 'extras' repos to the current directory: reposync --repoid=updates --repoid=extras Sync all packages from the 'updates' repo to the repos directory: reposync -p repos --repoid=updates Sync all packages from the 'updates' repo to the repos directory excluding x86_64 arch. Edit /etc/yum.conf adding option exclude=*.x86_64. Then: reposync -p repos --repoid=updates FILES
reposync uses the yum libraries for retrieving information and packages. If no configuration file is specified, the default yum configura- tion will be used. /etc/yum.conf /etc/yum/repos.d/ 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. 27 April 2007 reposync(1)
All times are GMT -4. The time now is 09:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy