[ATrpms-users] Packaging standars (Was: lzo on RHEL3)
Axel Thimm
Axel.Thimm at ATrpms.net
Tue Jun 19 11:41:41 CEST 2007
On Tue, Jun 19, 2007 at 11:19:08AM +0200, Thomas Moschny wrote:
> On Tuesday 19 June 2007, Axel Thimm wrote:
> > Can you please post the output of these tools? yum and apt never
> > remove a package if it isn't obsoleted (which is not the case here)
> > and smart is smart enough to install both liblzo1 and liblzo2. If not
> > then there is a bug somehwere, not a general design issue.
>
> One of the design issues is that these lib* packages will stay there and
> linger around in my system even when they are not needed anymore, until I
> remove them manually or with the help of yum's package-cleanup or whatever.
>
> The reason is that the existing infrastructure (librpm and it's frontends
> smart/yum/apt) doesn't differentiate between packages that were installed
> because user explicitly wished so, and those packages that were installed as
> a dependency. Doing so would require the frontends to maintain their own
> persistent knowledge about installed packages, as the rpm database doesn't
> contain that information.
In fact it does, but I haven't delivered a robust implemenation yet.
A poor man's implementation is (written down untested)
for package in `rpm -q --whatprovides shared-library-package`; do rpm -e $package 2>/dev/null; done
Something like this can be placed into cron and remove the packages
automatically.
--
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.atrpms.net/pipermail/atrpms-users/attachments/20070619/8aad4ebe/attachment.bin
More information about the atrpms-users
mailing list