[opensuse-factory] Problems with zypper list-updates
Hello, Last week I decided to switch from smart to zypper when doing Factory updates. I found a issue I couldn't figure out yet, but before logging a bug report, can someone confirm that I'm not doing something wrong? Here's my repositories list: # zypper sl # | Enabled | Refresh | Type | Alias | Name --+---------+---------+--------+--------------------+------------------- 1 | Yes | Yes | rpm-md | SL-Factory-non-oss | SL-Factory-non-oss 2 | Yes | Yes | rpm-md | SL-OSS-factory | SL-OSS-factory 3 | No | No | yast2 | migrated_0 | migrated_0 They are correctly refreshed: # zypper ref Repository 'SL-Factory-non-oss' is up to date. Repository 'SL-OSS-factory' is up to date. All repositories have been refreshed. And "zypper list-updates" informs me that no new packages are found: # zypper list-updates * Reading repository 'SL-Factory-non-oss' cache * Reading repository 'SL-OSS-factory' cache * Reading installed packages [100%] No updates found. Problem is: "zypper xml-updates" correctly returns a lot of packages available as updates: # zypper xml-updates | grep 'update name' | more <update name="xorg-x11-libxcb-devel" edition="7.2-47" kind="package" > <update name="python-sip" edition="4.7-15" kind="package" > <update name="giflib-devel" edition="4.1.4-81" kind="package" > <update name="libgtop" edition="2.19.92-2" kind="package" > <update name="libgimpprint" edition="4.2.7-171" kind="package" > (...) Just to make sure the package is supposed to be updated: # rpm -q xorg-x11-libxcb-devel xorg-x11-libxcb-devel-7.2-46 # zypper in xorg-x11-libxcb-devel * Reading repository 'SL-Factory-non-oss' cache * Reading repository 'SL-OSS-factory' cache * Reading installed packages [100%] The following package is going to be upgraded: xorg-x11-libxcb-devel Overall download size: 171.6 K. After the operation, 0.0 B will be freed. Continue? [yes/no]: y Downloading package xorg-x11-libxcb-devel-7.2-47.ppc, 171.6 K (2.0 M unpacked) Downloading: xorg-x11-libxcb-devel-7.2-47.ppc.rpm * Downloading [100%] * Installing: xorg-x11-libxcb-devel-7.2-47 [100%] I updated zypper and libzypp to the latest versions, just to make sure: # rpm -q zypper libzypp zypper-0.8.19-8 libzypp-3.22.7-2 I'm running beta3 (PPC): # cat /etc/SuSE-release openSUSE 10.3 (PPC) Beta3 VERSION = 10.3 Thanks! Leonardo --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Leonardo >>> On 13-09-2007 at 17:55, "Leonardo Chiquitto"wrote: > # zypper list-updates > * Reading repository 'SL-Factory-non-oss' cache > * Reading repository 'SL-OSS-factory' cache > * Reading installed packages [100%] > > No updates found. Yes, you're doing something the wrong way, like everybody starting with zypper. by using # zypper lu zypper only shows patches, as also "zypper up" only is going to install patches. What you're looking for is zypper list-updated -t package and zypper up -t package That will give the result you're expecting. Dominique TMF is a global management and accounting outsourcing firm with 73 offices in 57 countries and over 2,000 professionals (2007). TMF is expanding rapidly throughout the world. Learn more about our unique network and our services and visit our website at www.tmf-group.com. The information contained in this e-mail communication is confidential and solely intended for the person to whom it is addressed. If someone other than the intended recipient should receive or come into possession of this e-mail communication, he/she will not be entitled to read, disseminate, disclose or duplicate it. If you are not the intended recipient, you are requested to notify the sender and to destroy the original e-mail communication. TMF is neither liable for the correct and complete transmission of the information contained in this e-mail communication nor for any delay in its receipt. This footnote also confirms that this email message has been checked for the presence of computer viruses. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Hello,
# zypper list-updates * Reading repository 'SL-Factory-non-oss' cache * Reading repository 'SL-OSS-factory' cache * Reading installed packages [100%]
No updates found.
Yes, you're doing something the wrong way, like everybody starting with zypper.
by using # zypper lu zypper only shows patches, as also "zypper up" only is going to install patches.
I must say that this is kind of confusing, considering the help screen: (...) patches, pch List patches list-updates, lu List updates xml-updates, xu List updates and patches in xml format As we have "list-updates" and "patches", it isn't straightforward for a beginner to guess that "list-updates" (by default) just lists patches.
What you're looking for is zypper list-updates -t package and zypper up -t package
Thanks for the help. It worked. Leonardo --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Leonardo Chiquitto wrote:
I must say that this is kind of confusing, considering the help screen: (...) patches, pch List patches list-updates, lu List updates xml-updates, xu List updates and patches in xml format
As we have "list-updates" and "patches", it isn't straightforward for a beginner to guess that "list-updates" (by default) just lists patches.
Yes i agree. The texts should be improved. E.g. patches, pch List all available patches. list-updates, lu List updates of given type (default: patch) xml-updates, xu List package and patch updates in xml format To explain it in more detail: - zypper patches list _all_ patches (much like zypper search -t patch) with special Category and Status columns. - zypper list-updates lists available _updates_, that is, for patches it lists only _needed_ patches, for packages it lists only newer versions of those packages which are currently installed. - xml-updates combines zypper list-updates -t package and patch and prints the output in xml. I'll check the man page if it reflects what i just said :O) Cheers Jano --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (3)
-
Dominique Leuenberger
-
Jan Kupec
-
Leonardo Chiquitto