Using --replacewith

Asked by Alan Sawyer

Ok, I have a known problem with my yum so I have to disable excludes which is fine.
I want to update php53.

So I installed the replacewith plugin

# yum install --disableexcludes=all yum-plugin-replace
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package yum-plugin-replace.noarch 0:0.2.4-3.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================================
 Package Arch Version Repository Size
====================================================================================================================================================================
Installing:
 yum-plugin-replace noarch 0.2.4-3.el5 ius 16 k

Transaction Summary
====================================================================================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)

Total size: 16 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : yum-plugin-replace 1/1

Installed:
  yum-plugin-replace.noarch 0:0.2.4-3.el5

Complete!
#

Now I want to us php53u to update php

# yum replace --disableexcludes=all php --replace-with php53u
usage: yum [options] COMMAND

List of Commands:

check-update Check for available package updates
clean Remove cached data
deplist List a package's dependencies
downgrade downgrade a package
erase Remove a package or packages from your system
groupinfo Display details about a package group
groupinstall Install the packages in a group on your system
grouplist List available package groups
groupremove Remove the packages in a group from your system
help Display a helpful usage message
info Display details about a package or group of packages
install Install a package or packages on your system
list List a package or groups of packages
localinstall Install a local RPM
makecache Generate the metadata cache
provides Find what package provides the given value
reinstall reinstall a package
repolist Display the configured software repositories
resolvedep Determine which package provides the given dependency
search Search package details for the given string
shell Run an interactive yum shell
update Update a package or packages on your system
upgrade Update packages taking obsoletes into account

Command line error: no such option: --replace-with
#

I was going to try the manual method as described at :
http://iuscommunity.org/Doc/ClientUsageGuide/UpgradingTheOldWay

but I wanted to try the replacewith option since it seems much cleaner

I am trying to follow this doc to update php and then mysql:

http://iuscommunity.org/Docs/ClientUsageGuide

I feel like I'm very close but not quite there.

Any help would be appreciated.

Alan

Question information

Language:
English Edit question
Status:
Expired
For:
IUS Community Project Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jeffrey Ness (jeffrey-ness) said :
#1

Hello Alan,

Unfortunately I am not that familiar with the yum-replace module,
if you absolutely wish to use this method we will need to wait till BJ
can have a look.

What I would suggest is verify the package did in fact install, and the files are in place:

    rpm -q yum-plugin-replace

and check the file listing for this package

    rpm -q yum-plugin-replace -l

then check the files are in the yum plugins path (this file should be listed above):

    ls -l /usr/lib/yum-plugins/replace.py*

Revision history for this message
BJ Dierkes (derks) said :
#2

Can you provide the output of the following commands:

# cat /etc/yum/pluginconf.d/replace.conf

# yum --help

I've tested and verified that yum-plugin-replace does work just fine on a CentOS 5.7 box.

Revision history for this message
Alan Sawyer (asawyer) said :
#3

# cat /etc/yum/pluginconf.d/replace.conf
[main]
enabled=1
#

# yum --help
usage: yum [options] COMMAND

List of Commands:

check-update Check for available package updates
clean Remove cached data
deplist List a package's dependencies
downgrade downgrade a package
erase Remove a package or packages from your system
groupinfo Display details about a package group
groupinstall Install the packages in a group on your system
grouplist List available package groups
groupremove Remove the packages in a group from your system
help Display a helpful usage message
info Display details about a package or group of packages
install Install a package or packages on your system
list List a package or groups of packages
localinstall Install a local RPM
makecache Generate the metadata cache
provides Find what package provides the given value
reinstall reinstall a package
repolist Display the configured software repositories
resolvedep Determine which package provides the given dependency
search Search package details for the given string
shell Run an interactive yum shell
update Update a package or packages on your system
upgrade Update packages taking obsoletes into account

options:
  -h, --help show this help message and exit
  -t, --tolerant be tolerant of errors
  -C run entirely from cache, don't update cache
  -c [config file] config file location
  -R [minutes] maximum command wait time
  -d [debug level] debugging output level
  --showduplicates show duplicates, in repos, in list/search commands
  -e [error level] error output level
  -q, --quiet quiet operation
  -v, --verbose verbose operation
  -y answer yes for all questions
  --version show Yum version and exit
  --installroot=[path] set install root
  --enablerepo=[repo] enable one or more repositories (wildcards allowed)
  --disablerepo=[repo] disable one or more repositories (wildcards allowed)
  -x [package], --exclude=[package]
                        exclude package(s) by name or glob
  --disableexcludes=[repo]
                        disable exclude from main, for a repo or for
                        everything
  --obsoletes enable obsoletes processing during updates
  --noplugins disable Yum plugins
  --nogpgcheck disable gpg signature checking
  --disableplugin=[plugin]
                        disable plugins by name
  --enableplugin=[plugin]
                        enable plugins by name
  --skip-broken skip packages with depsolving problems
  --color=COLOR control whether color is used

  Plugin Options:
#

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Open' state without activity for the last 15 days.