void-packages/lib
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
..
cmpver.c Use string version comparator code from FreeBSD. 2009-02-17 03:49:02 +01:00
depends.c Added support to check SHA256 integrity for binary pkgs. 2009-02-26 05:41:49 +01:00
fexec.c libxbps: add fexec.c from NetBSD's pkg_install, with some minor mods. 2008-12-28 04:34:27 +01:00
humanize_number.c Prefix humanize_number() with xbps_. 2008-12-22 07:51:14 +01:00
install.c install.c: avoid using extra pointers when you only need one. 2009-02-28 17:22:05 +01:00
Makefile Added support to list and remove orphaned packages. 2009-03-02 02:26:20 +01:00
orphans.c Added support to list and remove orphaned packages. 2009-03-02 02:26:20 +01:00
plist.c plist.c: fix a leak in xbps_find_pkg_installed_from_plist(). 2009-03-01 17:32:52 +01:00
remove.c Fix some problems with dangling links while removing a binpkg. 2009-02-28 17:32:38 +01:00
repository.c repository.c: update copyright's year. 2009-02-14 01:58:26 +01:00
requiredby.c Implement support to update required_by objs when removing a pkg. 2009-02-27 16:03:25 +01:00
sha256.c Change code to compile with -Wall -Wextra. 2009-02-18 01:07:51 +01:00
sortdeps.c sortdeps.c: use a high priority for packages that don't have run_depends. 2009-03-01 17:33:19 +01:00
unpack.c Fix some problems with dangling links while removing a binpkg. 2009-02-28 17:32:38 +01:00
util.c Implement support to update required_by objs when removing a pkg. 2009-02-27 16:03:25 +01:00