-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Maciej Pilichowski wrote:
3) did user install it explictly or it was SM call (fullfilling requirements) It must be tracked by the package manager because RPM won't tell you.
True, but this could be used to assign "points" to each package. Points would be used to show sorted list of unused packages. That way top packages would be libraries, at bottom you would find applications.
Mmm.. a scoring system... that's likely to cause harm though. If it's constrained to libraries, then it might work, but for non-library or non-devel packages, I'm not sure whether it's a good idea. And never removing packages from a "System/*" %GROUP is probably needed too.
And then you get into the problem that it would only work if the user always uses yast (or maybe it could be done in libzypp). If he uses "rpm -i" or smart or yum or whatever else just once, it won't be tracked. IMO point 3) is not feasible. Here I differ in opinion, if you use rpm you are likely not a regular user,
That's plain wrong. The package manager doesn't always do what you'd need and there are some tutorials that explain how to get things done by using rpm directly. You cannot just discard that case because no one is going to do it.
so seeing list: OpenOffice libsomething you should also easily judge if it is a library or an app.
Yes, as long as it follows the new Shared Library Policy that was introduced in 10.3, which is the case for most packages (but not all) -- at least if you're only looking at the package name (^lib).
And the problem in the first place is that you can't just use "rpm --whatrequires" to find out whether a package is needed or not, because rpm only reports Requires: with package names there. But must of the dependencies are on filenames (e.g. "libxml2.so.2" or "/bin/bash").
Yes, it could be time consuming. But the good news it is possible. It could be option not to check the whole system but to examine "suspicious" package if it is still required -- this would be also useful.
I don't know. My point is: either it works reliably, with 100% accuracy (i.e. don't remove needed packages), or just don't do it at all because it's likely to cause more harm than good. cheers - -- -o) Pascal Bleser http://linux01.gwdg.de/~pbleser/ /\\ <pascal.bleser@skynet.be> <guru@unixtech.be> _\_v The more things change, the more they stay insane. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFG/47xr3NMWliFcXcRAqv6AKC4s3O/EIBBURjS/HqwJjNgy+mC6QCfWLVB 5fN1Q0TtBGRkh2ZzbaazpZg= =CQUL -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-softwaremgmt+help@opensuse.org