Question about libzypp and zypper

I 've been using suse since 9.0 and I always have been unable to handle unused packages. Is there a way to do so? Any command that “cleans” the system from unused packages, dependencies, broken packages?Something like the apt tool has: apt-get autoclean;)

geologos schreef:

> I 've been using suse since 9.0 and I always have been unable to handle
> unused packages. Is there a way to do so?

I don’t know.
But i’m interested in knowing how you did it before?

Chris Maaskant

This was discussed on yast-devel ML in June 08, but is not implemented at the moment (and won’t be for 11.1 afaik, but maybe for 11.2).
See [yast-devel] introduce a package history to remove obsolete packages](http://lists.opensuse.org/yast-devel/2008-06/msg00020.html)

You can fix broken package depandancies with “zypper verify”.

Chris > " I always have been unable …" :slight_smile:

It was a question that I thought and never asked :slight_smile: It occured to me after trying in virtualbox arch,debian,*buntu distros. I would love to see this feature in Suse.Spyhawk thank you for the link!

geologos wrote:
> Any command that “cleans” the system from unused packages, dependencies,
> broken packages?

in the dead-tree-mail Thursday came the Nov 2008 edition of Linux Format
<http://www.linuxformat.co.uk/>, which has a HotPicks section highlighting a
“file remover” app called KleanSweep which “will take a fair stab at cleaning up
the desktop…Windows has a utility like this (Disk Clean)…it roots out
forgotten files…orphaned symlinks and cached objects and then deletes them if
that’s what you want…you can browse thought the list first and deselect
any…you want to keep.” and it goes on to say it can run as a user (and stay in
/home) or as root but “obvious precautions should be taken…cross your fingers
and e extra specially careful…”

i’ve not downloaded/installed/used it so don’t take this posting as a
recommendation–but if you wanna cross your fingers and have a look, see:
http://www.kde-apps.org/content/show.php?content=28631

i still remember the last time i ran such on a system (either Win3.1 or Warp) it
took a V E R Y L O N G time to crawl through a hard drive and come up with a
(long) list or possible deletes…and, then it was very difficult (for me) to
determine what could safely be deleted…use at YOUR own risk, and have a
backup/restore plan…


see caveat: http://tinyurl.com/6aagco
DenverD (Linux Counter 282315) via NNTP, Thunderbird 2.0.0.14, KDE 3.5.7, SUSE
Linux 10.3, 2.6.22.18-0.2-default #1 SMP i686 athlon

Spyhawk schreef:

> See ‘[yast-devel] introduce a package history to remove obsolete
> packages’ (http://lists.opensuse.org/yast-devel/2008-06/msg00020.html)
>
> You can fix broken package depandancies with “zypper verify”.
>
> Chris > " I always have been unable …" :slight_smile:

Haha, yes somehow i read “I always have been able” :s
Thanks for the link, i hope this will be implemented in openSUSE 11.1.

Chris Maaskant

I tried clean sweep in the past but did not work for me. zypper verify does not seem to exist in 10.3. Any way. thank you for the replies, no solution so far. Looking forward to 11.1 :slight_smile:

You’re right, “zypper verify” was introduced in 11.0.

Another news : The first step of the new ZYpp log are currently developped into the svn. See [zypp-devel] ZYpp History Log](http://lists.opensuse.org/zypp-devel/2008-09/msg00137.html), 24 September.

This functionality is an important enhancement. The ZYpp team will be able to build the “autoclean” feature on top of it. :wink: