M
M
mrAibo2014-09-24 11:07:07
SUSE
mrAibo, 2014-09-24 11:07:07

How to update a package from zypper to a specific version (not the latest)?

Good time dear.
I ran into the following problem.
There are a bunch of SuSE servers that have a repository attached with a bunch of program versions.
more or less like this:

zypper pa -ir out-repo
Loading repository data...
Reading installed packages...
S | Repository | Name                | Version                        | Arch
--+------------+---------------------+--------------------------------+-------
i | out-repo  | activemq-server-rpm | 5.8.0.3-SNAPSHOT20130422220245 | x86_64
i | out-repo  | cups                | 1.4.4-3.3.1                    | x86_64
i | out-repo  | cups-client         | 1.4.4-3.3.1                    | x86_64
v | out-repo  | cups-libs           | 1.4.4-3.1.1                    | x86_64
i | out-repo  | jboss-server-rpm    | 7.1.3.3-SNAPSHOT20130429221629 | x86_64
i | out-repo  | jdk                 | 2000:1.7.0_21-fcs              | x86_64
i | out-repo  | libjpeg8            | 8.0.2-3.1                      | x86_64
i | out-repo  | libopenssl1_0_0     | 1.0.0c-18.42.1                 | x86_64
i | out-repo  | libpng14-14         | 1.4.4-3.6.1                    | x86_64
v | out-repo  | pmc-rpm-nds      | 10.3.7-1                       | x86_64
v | out-repo  | pmc-rpm-nds      | 10.3.4-1                       | x86_64
v | out-repo  | pmc-rpm-nds      | 10.3.3-1                       | x86_64
v | out-repo  | pmc-rpm-nds      | 10.1.4-1                       | x86_64
v | out-repo  | pmc-rpm-nds      | 10.1.3-1                       | x86_64
v | out-repo  | pmc-rpm-nds      | 10.1.2-1                       | x86_64
v | out-repo  | pmc-rpm-nds      | 10.1.1-1                       | x86_64
v | out-repo  | pmc-rpm-nds      | 10.1.1-1                       | x86_64
v | out-repo  | pmc-rpm-nds      | 9.8.16-1                       | x86_64
v | out-repo  | pmc-rpm-nds      | 9.8.15-1                       | x86_64

If I do
zypper update -t package pmc-rpm-nds
, zypper will install the latest version of the package, which I don't need.
zypper lu -a
Retrieving repository 'cups' metadata [done]
Loading repository data...
Reading installed packages...
S | Repository | Name           | Current Version | Available Version | Arch
--+------------+----------------+-----------------+-------------------+-------
v | out-repo  | pmc-rpm-nds | 10.1.5-1        | 10.3.7-1          | x86_64

You need to install version 10.3.3-1, then, after a while, 10.3.4-1, and then the last one.
Is there a solution without extracting from the repository rpm package?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mrAibo, 2014-09-25
@mrAibo

Well. Looks like I found a solution.
To update to a specific package version, you can use the in(stall) parameter
zypper in pmc-rpm-nds=10.1.3-1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question