Commit Graph

5 Commits

Author SHA1 Message Date
Juan RP 75cac4a637 xbps_find_orphan_packages: simplify and make it report the correct order.
--HG--
extra : convert_revision : f3b09a258e4cd0bdd310935b51742a09e8db4409
2009-08-08 22:16:45 +02:00
Juan RP 9affd1491a xbps_find_orphan_packages: use xbps_prepare_regpkgdb_dict().
--HG--
extra : convert_revision : 5c7b61ade09df674256ef9fb8f3b6d3e8d962ab3
2009-08-08 15:19:47 +02:00
Juan RP 7b22faf19d xbps_find_orphan_packages: fix a memleak.
--HG--
extra : convert_revision : 67547efacd9a711ae6f92889a41d2e93665a020d
2009-08-02 01:17:08 +02:00
Juan RP 4bf5c5f750 Introduce xbps_xasprintf() and use it where required.
--HG--
extra : convert_revision : 324a92a4824476059e0993d00c2b925c732a79f8
2009-04-04 19:32:39 +02:00
Juan RP 0d8f08e8ea Added support to list and remove orphaned packages.
A new target has been added to xbps-bin: autoremove. It works in
the same way than 'apt-get', but there's no stdin input. By default
it will list you all orphaned packages, and -f flag must be set
to really remove them.

The following is a real example for the git package, which requires
directly perl and curl-libs, and indirectly libidn and openssl.

$ xbps-bin -r ~/testing-xbps remove git
Removing package git-1.6.1.3 ... done.
$

$ xbps-bin -r ~/testing-xbps autoremove
The following packages were installed automatically
(as dependencies) and aren't needed anymore:

	perl-5.10.0 curl-libs-7.19.0 libidn-1.10 openssl-0.9.8j

If you are really sure you don't need them, use -f to confirm.
$

--HG--
extra : convert_revision : 70eebaa3d99be27753b94f580c8ec86330c7c2d3
2009-03-02 02:26:20 +01:00