How to use Yum & up2date…?



Installations
of packages using 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 CoreRPMPackage 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. It functions as a front-end to the

Click here to view comparison about yum and up2date with commands.

Basic Commands

YUM

UP2DATE

Function

yum update

up2date -u

Check for and update all RPM(S)

yum update <package> [<package>…]

eg:-  yum update vnc

up2date -u <package> [<package>…]

up2date httpd

Check for and update specified RPM(s)/Package

yum install <package>

eg:-  yum install vnc

up2date -i <package> [<package>…]

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 <package> [<package>…]

Remove the specified RPM(s) and it’s dependents

yum list “<regex>” [“<regex>”…]

eg:- yum list php

up2date –showall | grep “<search string>”

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 “<group name>” [“<group name>”]

eg:- yum groupupdate “GNOME Desktop Environment”

up2date -u “@<group name>”

up2date -u “@ GNOME Desktop Environment”

Update packages in a group

yum groupinstall “<group name>”

eg:- yum groupinstall “GNOME Desktop Environment”

up2date “@<group name>”

up2date -i “@ X Software Development “

Install all the default packages by group

To install group X Software Development

yum groupremove “<group name>” [“<group name>”]

not possible

Remove all packages in a group

yum grouplist

up2date –show-groups

List available package groups

yum localinstall <path/filename> [<path/filename>]

up2date -k <dir>[:<dir>…]

Install local packages solving and satisfying dependencies as needed

yum install <package>.<arch> [<package>.<arch>…

up2date –arch=<arch> <package> [<package>…]

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 shell

yum –enablerepo=reponame install packagename

up2date –show-channels

List all channels the system is currently subscribed to

To enable a repository which is disabled in the configuration:

yum whatprovides <dependency> [<dependency>…]

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

Advertisements

6 responses to “How to use Yum & up2date…?

  1. good stuff

  2. other than your page doesn’t display right on any recent browser.

  3. Good work…

  4. \fghh,.,ml

  5. Cool .. helped me with my stuff.

  6. Thank you for this page. I use it all the time.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s