[Yum] Can Yum Install Multiple Versions of the Same Package at the Same Time?
Kyle Powell
kpowell at redhat.com
Tue Mar 9 21:21:26 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm trying to get yum to install multiple versions of the same package with one
command. But yum refuses to install more than one version per run. Am I doing
something wrong or does yum just not allow this?
[root at localhost ~]# rpm -q utils
utils-1.4.6-1
utils-1.4.3-1
[root at localhost ~]# yum --disablerepo=* --enablerepo=testing list utils
Loading "allowdowngrade" plugin
Loading "installonlyn" plugin
Setting up repositories
Reading repository metadata in from local files
Installed Packages
utils.noarch 1.4.6-1 installed
utils.noarch 1.4.3-1 installed
Available Packages
utils.noarch 1.4.2-1 testing
utils.noarch 1.2.8-1 testing
utils.noarch 1.3.2-1 testing
[root at localhost ~]# /usr/bin/yum -y --disablerepo=* --enablerepo=testing
- --allow-downgrade install utils-1.2.8-1.noarch utils-1.3.2-1.noarch
utils-1.4.2-1.noarch utils-1.4.3-1.noarch utils-1.4.6-1.noarch
Loading "allowdowngrade" plugin
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
- --> Populating transaction set with selected packages. Please wait.
- ---> Downloading header for utils to pack into transaction set.
- ---> Package utils.noarch 0:1.4.2-1 set to be installed
- --> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
utils noarch 1.4.2-1 testing 27 k
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 27 k
Downloading Packages:
(1/1): utils-1.4.2-1.noar 100% |=========================| 27 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: utils ######################### [1/1]
Installed: utils.noarch 0:1.4.2-1
Complete!
[root at localhost ~]# /usr/bin/yum -y --disablerepo=* --enablerepo=testing
- --allow-downgrade install utils-1.2.8-1.noarch utils-1.3.2-1.noarch
utils-1.4.2-1.noarch utils-1.4.3-1.noarch utils-1.4.6-1.noarch
Loading "allowdowngrade" plugin
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
- --> Populating transaction set with selected packages. Please wait.
- ---> Downloading header for utils to pack into transaction set.
- ---> Package utils.noarch 0:1.3.2-1 set to be installed
- --> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
utils noarch 1.3.2-1 testing 22 k
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 22 k
Downloading Packages:
(1/1): utils-1.3.2-1.noar 100% |=========================| 22 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: utils ######################### [1/1]
Installed: utils.noarch 0:1.3.2-1
Complete!
[root at localhost ~]# /usr/bin/yum -y --disablerepo=* --enablerepo=testing
- --allow-downgrade install utils-1.2.8-1.noarch utils-1.3.2-1.noarch
utils-1.4.2-1.noarch utils-1.4.3-1.noarch utils-1.4.6-1.noarch
Loading "allowdowngrade" plugin
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
- --> Populating transaction set with selected packages. Please wait.
- ---> Downloading header for utils to pack into transaction set.
- ---> Package utils.noarch 0:1.2.8-1 set to be installed
- --> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
utils noarch 1.2.8-1 testing 11 k
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 11 k
Downloading Packages:
(1/1): utils-1.2.8-1.noar 100% |=========================| 11 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: utils ######################### [1/1]
Installed: utils.noarch 0:1.2.8-1
Complete!
[root at localhost ~]# rpm -q utils
utils-1.4.6-1
utils-1.4.3-1
utils-1.4.2-1
utils-1.3.2-1
utils-1.2.8-1
[root at localhost ~]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=1
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800
showdupesfromrepos=1
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
installonlypkgs=kernel,kernel-xen,utils
- --
Kyle Powell
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFLlrvV7pTtanQdBU4RAvrtAJ9qImjXDzqBcHh6fvg1wPioK1n+2ACdH5wx
+++Mnx25ibfJklHssP5mc6M=
=1fdA
-----END PGP SIGNATURE-----
More information about the Yum
mailing list