LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-30-2009, 10:29 AM   #1
dunnma
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
Using yum update *


So, I am not so new at most *nix things, however, I am overly cautious about running this command.

I ran it and it came back with 35 packages to install and 107 packages to update. Things like perl, php, and mysql scare the dickens out of me.

Is there an "undo"?

I.e. I run yum update *, but then I notice that something doesn't work and I can run yum undo?

Do I trust that everything will auto work and there will not be any issues? As you can tell I am not too familiar with YUM.

Thanks!
 
Old 09-30-2009, 11:23 AM   #2
cpuobsessed
Member
 
Registered: Jan 2006
Distribution: Fedora, Ubuntu, Slackware
Posts: 56

Rep: Reputation: 15
Have no fear, yum is your friend. I have as yet to run into a problem with an update from yum. I been using Fedora for the last two years non-stop, and on and off for the last 4 years.
 
Old 09-30-2009, 11:26 AM   #3
pbharris
Member
 
Registered: Apr 2001
Location: chicago, IL
Distribution: debian, redhat
Posts: 280

Rep: Reputation: 30
what cpuobsessed said.
 
Old 09-30-2009, 11:30 AM   #4
cardy
Member
 
Registered: Jan 2005
Location: Shropshire, England, UK
Distribution: RedHat, Fedora, CentOS..........
Posts: 121

Rep: Reputation: 19
The packages you have mentioned are already installed, yum is simply telling you that there are updated versions of these packages.

If you say yes yum will download the packages and will then run a transaction check to ensure that the process will finish correctly.

If any configuration files are updated then yum will either create the new version of the config in a <filename>.rpmnew file or will save your old file as <filename>.rpmsave

I have done this process hundreds of times and very rarely have any problems and in the cases where I have yum has informed me of them before the packages are updated (i.e. after running the transaction check).
 
Old 09-30-2009, 11:40 AM   #5
mlinuxk
LQ Newbie
 
Registered: May 2004
Location: North Carolina
Distribution: Fedora Core 2 1.92 V3
Posts: 18

Rep: Reputation: 0
Fear Not

You need to read the man page for yum.
There is an uninstall option in Yum
"yum remove 'package'", if you are unsure what to remove "fear not" you can always reload Linux.

You said:
"Things like perl, php, and mysql scare the dickens out of me. "

These programs are good. You may not need them, but a utility that you use might so I would be careful

Linux is generally well documented. You type "info yum" or "man yum"

and you will get a page similar to the one listed below which I copied from the web. This may seem a little cryptic at first but it is really just terse.
After you learn the way Linux works, you will realize that it is there as a reminder as no one can remember everything.

After a while, it becomes easier to read. It makes learning Linux a lot easier and cheaper than using the snow blower approach that Microsh*t uses. You already know that Wind*ws su*ks or else you wouldn't have discovered Linux, so I'll shut up already.

You will often see the word RTM or RTFM which stands for Read The Man(ual) page or Read The F***** Man(ual) page.

If you are worried about something being loaded that you do not know what it is do a web search or RTM.

Linux is remarkably well maintained, to be a community hack. If you are really interested in learning Linux, find a used bookstore somewhere and get a book on the subject. It doesn't have to be the latest edition as basic Linux doesn't require new skill sets and manuals with every edition, Linux like Congress is incrementally taking over the world.
Good luck


yum(8) - Linux man page
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 [package1] [package2] [...]
* remove | erase package1 [package2] [...]
* list [...]
* info [...]
* provides | whatprovides feature1 [feature2] [...]
* clean [ packages | headers | metadata | cache | dbcache | all ]
* makecache
* groupinstall group1 [group2] [...]
* groupupdate group1 [group2] [...]
* grouplist [hidden]
* groupremove group1 [group2] [...]
* groupinfo group1 [...]
* search string1 [string2] [...]
* shell [filename]
* resolvedep dep1 [dep2] [...]
* localinstall rpmfile1 [rpmfile2] [...]
* localupdate rpmfile1 [rpmfile2] [...]

* deplist package1 [package2] [...]

Unless the --help or -h option is given, one of the above commands must be present.

Repository configuration is honored in all operations.

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.

If the --obsoletes flag is present yum will include package obsoletes in its calculations - this makes it better for distro-version changes, for example: upgrading from somelinux 8.0 to somelinux 9.
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
Is the same as the update command with the --obsoletes flag set. See update for more details.
remove or erase
Are used to remove the specified packages from the system as well as removing any packages which depend on the package being removed.
list
Is used to list various information about available packages; more complete details are available in the List Options section below.
provides or whatprovides
Is 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.
search
Is used to find any packages matching a string in the description, summary, packager and package name fields of an rpm. Useful for finding a package you do not know by name but know by some word related to it.
info
Is 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 yum cache directory over time. More complete details can be found in the Clean Options section below.
shell
Is used to enter the 'yum shell', when a filename is specified the contents of that file is executed in yum shell mode. See yum-shell(8) for more info
resolvedep
Is used to list packages providing the specified dependencies, at most one package is listed per dependency.
localinstall
Is used to install a set of local rpm files. If required the enabled repositories will be used to resolve dependencies.
localupdate
Is used to update the system by specifying local rpm files. Only the specified rpm files of which an older version is already installed will be installed, the remaining specified packages will be ignored. If required the enabled repositories will be used to resolve dependencies.
deplist
Produces a list of all dependencies and what packages provide those dependencies for the given packages.

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 any question which would be asked is yes.
Configuration Option: assume-yes
-c [config file]
Specifies the config file location - can take http, ftp urls and local file paths.
-d [number]
Sets the debugging level to [number] - turns up or down the amount of things that are printed. Practical range: 0 - 10
Configuration Option: debuglevel
-e [number]
Sets the error level to [number] Practical range 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.
Configuration Option: errorlevel
-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.
--version
Reports the yum version number and exits.
--installroot=root
Specifies an alternative installroot, relative to which all packages will be installed.
Configuration Option: installroot
--enablerepo=repoidglob
Enables specific repositories by id or glob that have been disabled in the configuration file using the enabled=0 option.
Configuration Option: enabled
--disablerepo=repoidglob
Disables specific repositories by id or glob.
Configuration Option: enabled
--obsoletes
This option only has affect for an update, it enables yum's obsoletes processing logic. For more information see the update command above.
Configuration Option: obsoletes
--exclude=package
Exclude a specific package by name or glob from updates on all repositories.
Configuration Option: exclude
--noplugins
Run with all plugins disabled.
Configuration Option: plugins

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 [all | glob_exp1] [glob_exp2] [...]
List all available and installed packages.
yum list available [glob_exp1] [...]
List all packages in the yum repositories available to be installed.
yum list updates [glob_exp1] [...]
List all packages with updates available in the yum repositories.
yum list installed [glob_exp1] [...]
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 [glob_exp1] [...]
List the packages installed on the system that are not available in any yum repository listed in the config file.
yum list obsoletes [glob_exp1] [...]
List the packages installed on the system that are obsoleted by packages in any yum repository listed in the config file.
yum list recent
List packages recently added into the repositories.
Specifying package names
All the list options mentioned above take file-glob-syntax wildcards or package names as arguments, for example yum list available 'foo*' will list all available packages that match 'foo*'. (The single quotes will keep your shell from expanding the globs.)

Clean Options

The following are the ways which you can invoke yum in clean
mode. Note that "all files" in the commands below means "all files in currently enabled repositories". If you want to also clean any (temporarily) disabled repositories you need to use --enablerepo='*' option.
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 header files which yum uses for dependency resolution.
yum clean metadata
Eliminate all of the files which yum uses to determine the remote availability of packages. Using this option will force yum to download all the metadata the next time it is run.
yum clean dbcache
Eliminate the sqlite cache used for faster access to metadata. Using this option will force yum to recreate the cache the next time it is run.
yum clean all
Runs yum clean packages and yum clean headers as above.

Misc

Specifying package names
A package can be referred to for install,update,list,remove etc with any of the following:
name

name.arch
name-ver
name-ver-rel
name-ver-rel.arch
name-epoch:ver-rel.arch
epoch:name-ver-rel.arch
For example: yum remove kernel-2.4.1-10.i686

Plugins
Yum can be extended through the use of plugins. A plugin is a Python ".py" file which is installed in one of the directories specified by the pluginpath option in yum.conf. For a plugin to work, the following conditions must be met:

1. The plugin module file must be installed in the plugin path as just described.

2. The global plugins option in /etc/yum.conf must be set to '1'.

3. A configuration file for the plugin must exist in /etc/yum/pluginconf.d/<plugin_name>.conf and the enabled setting in this file must set to '1'. The minimal content for such a configuration file is:

[main]

enabled = 1

See the yum.conf(5) man page for more information on plugin related configuration options.
Files

/etc/yum.conf
/etc/yum/repos.d/
/etc/yum/pluginconf.d/
/var/cache/yum/

See Also

yum.conf (5)http://linux.duke.edu/yum/
http://wiki.linux.duke.edu/YumFaq

Authors

See the Authors file included with this program.

Bugs
There of course aren't any bugs, but if you find any, you should first consult the Faq mentioned above and then email the mailing list: yum@lists.linux.duke.edu or filed in bugzilla.
Referenced By
mock(1), opyum(8), pirut(8), pup(8), puplet(8), system-cdinstall-helper(8), system-install-packages(8), yum-updatesd(8)
 
Old 09-30-2009, 06:32 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,396

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
See here http://kbase.redhat.com/faq/docs/DOC-2531 for list of common examples of yum usage.
As mentioned above, update means update; it'll only update to your current requirements.
(if it mentions install, that's because a current pkg has a dependency to satisfy; no worries)

You'd have to use the keyword 'install' instead to install a completely new pkg.
Note also that yum is failsafe ie if it has an issue, it'll refuse to do the updates and it will tell you why.

Last edited by chrism01; 09-30-2009 at 06:34 PM.
 
Old 10-01-2009, 07:52 AM   #7
cpuobsessed
Member
 
Registered: Jan 2006
Distribution: Fedora, Ubuntu, Slackware
Posts: 56

Rep: Reputation: 15
Another thing about yum is if it is the middle of a process (update, install, etc.) and the network goes down it can continue without having to re-download what it already downloaded.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum question: How to update from backed up yum cache? Arodef Linux - Software 2 02-02-2010 11:42 PM
erased yum.conf by forced yum-update in RHEL5.3, need help curiocurio Red Hat 3 04-21-2009 03:33 AM
Yum update stopped responding during kernel update install, now server load is high pulsorock Linux - Kernel 1 12-31-2008 01:55 AM
Yum on FC6. 'yum update' error. mufy Fedora 8 06-14-2007 02:03 AM
Query re: order of yum update and yum install jajtiii Linux - General 0 12-12-2005 12:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration