UnixServerAdmin

Server Administration & Management

Difference between YUM & UP2DATE

The Yellow dog Updater, Modified (YUM) is a free software/open source command line package management utility for RPM-compatible Linux operating systems. It automatically computes dependencies and figures out what things should occur to install packages. It makes it easier to maintain groups of machines without having to manually update each one using rpm. Yum leaves as result of its use heads and packages RPM stored in the interior of the directory located in the route /var/cache/yum/.

UP2DATE is a tool used by Red Hat Enterprise Linux, CentOS and early versions of Fedora Core RPMPackage Manager and adds advanced  features such as automatic dependency resolution. The file /etc/sysconfig/rhn/sources specifies where up2date will search for packages. that downloads and installs new software and upgrades to the operating system.

YUM UP2DATE Function
yum update up2date -u Check for and update all RPM(S)
yum update <package> [<package>…]eg:-  yum update vnc up2date -u […]up2date httpd Check for and update specified RPM(s)/Package
yum install <package>eg:-  yum install vnc up2date -i […]up2date -i  httpd

up2date -d –src Package-Name

Install the specified RPM(s)Download source packages only but don’t install:
yum remove <package>eg:-  yum remove vnc rpm -e […] Remove the specified RPM(s) and it’s dependents
yum list “<regex>” [“<regex>”…]eg:- yum list php up2date –showall | grep “”up2date –showall | grep “php” Search for packages by name
yum list updates [“<regex>”…] up2date -l List all packages which could be updated
yum list available [“<regex>”…] up2date –show-available List all available packages
yum list installed [“<regex>”…] rpm -qa List all installed packages
yum groupupdate “” [“”]eg:- yum groupupdate “GNOME Desktop Environment” up2date -u “@”up2date -u “@ GNOME Desktop Environment” Update packages in a group
yum groupinstall “”eg:- yum groupinstall “GNOME Desktop Environment” up2date “@”up2date -i “@ X Software Development “ Install all the default packages by groupTo install group X Software Development
yum groupremove “” [“”] not possible Remove all packages in a group
yum grouplist up2date –show-groups List available package groups
yum localinstall [] up2date -k[:…] Install local packages solving and satisfying dependencies as needed
yum install <package>.<arch> [<package>.<arch>… up2date –arch= […]up2date –arch=i386 mysql Install package of specified architecture
yum list extras up2date –show-orphans Show all packages not available via subscribed channels or repositories
echo “repo list” | yum shellyum –enablerepo=reponame install packagename up2date –show-channels List all channels the system is currently subscribed toTo enable a repository which is disabled in the configuration:
yum whatprovides […] Up2date –whatprovides=<dependency>[,<dependency>…]

up2date –whatprovides “/etc/passwd”

List packages that satisfy dependency(ies)You can easily find out what RPM package provides the file
rhn_register up2date –register Register a system to RHN hosted/satellite

September 29, 2012 - Posted by | Tips & Tricks, Unix/Linux | ,

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: