Bug 462696

Summary: Missing a possibility to list the from and to version of a package
Product: [openSUSE] openSUSE 11.1 Reporter: Richard Bos <richard.bos>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Whiteboard:
Found By: Community User Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: from and to pkg versions in yast online update

Description Richard Bos 2008-12-28 21:55:39 UTC
Please add the possibility to show the from and to version to zypper's
query's command.  AFAIK the current query commands don't provide this
possibility, e.g.:

# zypper -v up -t package
............
The following packages are going to be upgraded:
  Xerces-c-2.8.0-29.28.i586  (openSUSE-11.1-Oss, openSUSE)
  acroread-8.1.3-51.6.i586  (openSUSE-11.1-Non-Oss, openSUSE)
  akonadi-runtime-1.0.81-1.2.i586  (KDE 4.2 development snapshots, openSUSE Build Service)
..........

The repository is there and the to version as well.  But the from package
version is missing :(

Output similar to this would be nice:

# zypper -v up -t package
............
The following packages are going to be upgraded:
  Xerces-c: 2.7.0-75 -> 2.8.0-29.28.i586  (openSUSE-11.1-Oss, openSUSE)
  acroread: 8.1.3-1.1 -> 8.1.3-51.6.i586  (openSUSE-11.1-Non-Oss, openSUSE)
  akonadi-runtime: 1.0.0-31.27 -> 1.0.81-1.2.i586  (KDE 4.2 development snapshots, openSUSE Build Service)
..........

Based on this it is easier to determine whether the package should be really
updated or not.  Sometimes a package is undergoing a major update, like:

  kde4-xxx: 4.1.3 -> 4.1.85

In this case the package should not be updated.  But the above information
this (not updated) can be determined, with the current zypper output
command this is not so easy:

 kde4-xxx-4.1.85.i586..... (now should it be updated or not????)

This command does neither show the to package version:
# zypper list-updates -r repo-oss

Loading repository data...
Reading installed packages...
S | Name                   | Version        | Arch
--+------------------------+----------------+-----
v | Xerces-c               | 2.8.0-29.28    | i586
v | albumshaper            | 2.1-220.21     | i586
v | commoncpp2             | 1.6.1-32.35    | i586
v | compat-openssl097g     | 0.9.7g-146.1   | i586
v | curlftpfs              | 0.9.2-1.61     | i586

It seems easy (hopefully it is) to extend the table and add the from
version to it as well.

Looking forward to see forward to see this enhancement implement in zypper!
Comment 1 Richard Bos 2008-12-28 22:07:53 UTC
Created attachment 262579 [details]
from and to pkg versions in yast online update

BTW, yast online update GUI provides such a list.
Comment 2 Jan Kupec 2009-01-07 14:05:14 UTC
Agreed, this will be done soon.

*** This bug has been marked as a duplicate of bug 389128 ***