11-07-2012
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.
10 More Discussions You Might Find Interesting
1. Linux
I am setting up a new server with the goal of porting a solaris server to centos. I want to compile some packages myself (ie) http, ssl, mysql, etc. The reason for this is the downloadable rpm packages are very old. I probably want to make sure the kernel is up to date, but the individual pages... (2 Replies)
Discussion started by: csross
2 Replies
2. Linux
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
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. UNIX for Dummies Questions & Answers
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
5. Linux
Any one know of a way to do a yum -install and draw the argument of what to install from a text file?
I have a huge list of rpms that I have to install on a bunch of machines and I would like to run one script that goes to each machine and installs all rpms in the list I have. (2 Replies)
Discussion started by: rd42
2 Replies
6. Red Hat
I have a server running CentOS 5 and when yum update is run and a new kernel is installed and there are more then 3 kernels installed the oldest ones are removed. Anyway to achieve this with CentOS 4?
Matt (1 Reply)
Discussion started by: lforum
1 Replies
7. Red Hat
Hello All,
I am trying to upgrade redhat from 5.6 to 5.8.
When i use
Code:
yum update -y
it installs 5.9
I dont want 5.9, instead i would like to upgrade to 5.8
is there anyway to specify a version when you are doing
Code:
yum update (4 Replies)
Discussion started by: adam25ca
4 Replies
8. Red Hat
Hi,
I run RHEL 5.2 as a server in my lab. Now the issue I am facing is that I am unable to update my machine using yum update.
It shows an error of missing dependencies though dependencies are already installed.
Please help me to do that.
Error screen shot is also attached. (9 Replies)
Discussion started by: Ankur Goyal
9 Replies
9. Fedora
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
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
LEARN ABOUT CENTOS
yum-aliases
yum-aliases(1) yum-aliases(1)
NAME
yum aliases plugin
SYNOPSIS
yum [options] alias
DESCRIPTION
This plugin changes other commands in yum, much like the alias command in bash. There are a couple of notable differences from shell style
aliases though. The alias command has three forms:
* alias
* alias command
* alias command result
The first form lists all current aliases with their final result, the second form looks up a "command" and shows it's final result or an
error message. The last form creates a new alias.
Explanation of alias to final result conversion
When you type an aliased command, like "yum --disableexcludes UPT lsu" using the default aliases, the yum-aliases plugin first takes the
first "command", by skipping over any options, and then looks up the result (in this case "UPT" is converted to "--enablerepo=updates-test-
ing"). If there is a match, then it will replace the aliased "command" in the argument list and try again (again skipping over any
options). By convention, in the default aliases list, alias "commands" that are in all CAPS only add options so you can join together a
chain of them before any real command or aliased command.
There are two things that can alter the above, if you have the "recursive" configuration option set to off then alias processing will stop
after the first alias to command substitution. Also, like in shell aliases, if the result starts with then alias processing will stop.
EXAMPLES
To create a new alias command called "rm" which does the same thing as the command "remove" use:
yum alias rm remove
To always add the --skip-broken --disableexcludes=all --obsoletes options to the update command (but leaving the upgrade option alone), you
could use:
yum alias update update --skip-broken --disableexcludes=all --obsoletes
To override the default "up" alias to use the above update command, and never ask for confirmation, you could use:
yum alias up update -y
AUTHORS
James Antill <james@and.org>
SEE ALSO
yum-utils(1) yum(1)
James Antill 31 March 2008 yum-aliases(1)