What are the yum equivalents of up2date and rpm common tasks on Red Hat Enterprise Linux?
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- yum
- up2date
Issue
- What are the yum equivalents of up2date and rpm common tasks?
Resolution
- The following table lists
up2dateandrpmcommands used on earlier versions of Red Hat Enterprise Linux and theiryumequivalents for use on Red Hat Enterprise Linux.Task
up2date command
yum command
Check for and update all RPM(S)
up2date -uyum updateCheck for and update specified RPM(s)
up2date -u <package> [<package>...]yum update <package> [<package>...]Install the specified RPM(s)
up2date -i <package> [<package>...]yum install <package> [<package>...]Remove the specified RPM(s) and it's dependents
rpm -e <package> [<package>...]yum remove <package> [<package>...]Search for packages by name
up2date --showall | grep "<search string>"yum list "<regex>" ["<regex>"...]List all packages which could be updated
up2date -lyum list updates ["<regex>"...]List all available packages
up2date --show-availableyum list available ["<regex>"...]List all installed packages
rpm -qayum list installed ["<regex>"...]List all installed and available packages
up2date --showallyum list all ["<regex>"...]Update packages in a group
up2date -u "@<group name>"yum groupupdate "<group name>" ["<group name>"]Install all the default packages by group
up2date "@<group name>"yum groupinstall "<group name>" ["<group name>"]Remove all packages in a group
not possible
yum groupremove "<group name>" ["<group name>"]List available package groups
up2date --show-groupsyum grouplistInstall local packages solving and satisfying dependencies as needed
up2date -k <dir>[:<dir>...]yum localinstall <path/filename> [<path/filename>]Install package of specified architecture
up2date --arch=<arch> <package> [<package>...]yum install <package>.<arch> [<package>.<arch>...]Show all packages not available via subscribed channels or repositories
up2date --show-orphansyum list extrasList all channels the system is currently subscribed to
up2date --show-channelsecho "repo list" | yum shellList packages that satisfy dependency(ies)
up2date --whatprovides=<dependency>[,<dependency>...]yum whatprovides <dependency> [<dependency>...]Register a system to RHN hosted/satellite
up2date --registerrhn_register- More information about
yumandup2date, please see the man pages,# man yum # man up2date
SBRProduct(s)Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
- More information about