xbps/bin/xbps-remove/xbps-remove.8

114 lines
2.6 KiB
Groff
Raw Normal View History

2012-11-06 14:25:56 +05:30
.Dd November 6, 2012
.Os Void Linux
2012-11-03 15:17:03 +05:30
.Dt xbps-remove 8
.Sh NAME
.Nm xbps-remove
.Nd XBPS utility to remove packages
.Sh SYNOPSYS
.Nm xbps-remove
.Op OPTIONS
.Op PKGNAME...
.Sh DESCRIPTION
The
.Nm
2012-11-05 14:09:10 +05:30
utility removes installed packages in the target root directory.
2012-11-03 15:59:45 +05:30
Removing a package involves some steps:
.Pp
.Sy *
2012-11-03 16:03:55 +05:30
Executes the
2012-11-03 15:59:45 +05:30
.Sy pre-remove
action on its
.Sy REMOVE
2012-11-03 16:03:55 +05:30
script.
2012-11-03 15:59:45 +05:30
.Pp
.Sy *
Package files are removed if those have not been modified.
The
.Ar -f
option overrides this behaviour and forcefully removes the files.
.Pp
.Sy *
2012-11-03 16:03:55 +05:30
Executes the
2012-11-03 15:59:45 +05:30
.Sy post-remove
action on its
.Sy REMOVE
2012-11-03 16:03:55 +05:30
script.
2012-11-03 15:59:45 +05:30
.Pp
.Sy *
2012-11-03 16:03:55 +05:30
Changes package state to
2012-11-03 15:59:45 +05:30
.Sy XBPS_PKG_STATE_HALF_REMOVED .
.Pp
.Sy *
2012-11-03 16:03:55 +05:30
Executes the
2012-11-03 15:59:45 +05:30
.Sy purge
action on its
.Sy REMOVE
2012-11-03 16:03:55 +05:30
script.
2012-11-03 15:59:45 +05:30
.Pp
.Sy *
Package metadata files are removed.
.Pp
.Sy *
Package is unregistered from package database.
.Pp
2012-11-03 15:17:03 +05:30
.Sh OPTIONS
2012-11-06 15:03:29 +05:30
.Bl -tag -width -x
2012-11-05 14:09:10 +05:30
.It Fl C, Fl -config Ar file
2012-11-03 15:17:03 +05:30
Specifies a full path to the XBPS configuration file.
2012-11-05 14:09:10 +05:30
.It Fl c, Fl -cachedir Ar dir
2012-11-03 15:17:03 +05:30
Specifies a full path to the cache directory, where binary packages are stored.
2012-11-05 14:09:10 +05:30
.It Fl d, Fl -debug
2012-11-03 15:17:03 +05:30
Enables extra debugging shown to stderr.
2012-11-05 14:09:10 +05:30
.It Fl f, Fl -force
2012-11-03 15:17:03 +05:30
Forcefully remove package files even if they have been modified.
2012-11-05 14:09:10 +05:30
.It Fl h, Fl -help
2012-11-03 15:17:03 +05:30
Show the help usage.
2012-11-05 14:09:10 +05:30
.It Fl i, Fl -ignore-revdeps
2012-11-03 15:17:03 +05:30
Ignore reverse dependencies when removing packages.
2012-11-05 14:09:10 +05:30
.It Fl n, Fl -dry-run
2012-11-03 15:17:03 +05:30
Dry-run mode. Show what actions would be done but don't remove anything.
2012-11-05 14:09:10 +05:30
.It Fl O, Fl -clean-cache
2012-11-03 15:17:03 +05:30
Cleans cache directory removing obsolete binary packages.
2012-11-05 14:09:10 +05:30
.It Fl o, Fl -remove-orphans
2012-11-03 15:17:03 +05:30
Removes installed package orphans that were installed automatically
(as dependencies) and are not currently dependencies of any installed package.
2012-11-05 14:09:10 +05:30
.It Fl p, Fl -print-format Ar fmt
2012-11-03 15:17:03 +05:30
Specifies the
.Xr printf 3
format used by the
.Ar dry-run
mode.
2012-11-05 14:09:10 +05:30
.It Fl R, Fl -recursive
2012-11-03 15:17:03 +05:30
Recursively remove packages that were installed by
.Ar PKGNAME
and aren't required by other installed packages.
2012-11-05 14:09:10 +05:30
.It Fl r, Fl -rootdir Ar dir
2012-11-03 15:17:03 +05:30
Specifies a full path for the target root directory.
2012-11-05 14:09:10 +05:30
.It Fl v, Fl -verbose
2012-11-03 15:17:03 +05:30
Enables verbose messages.
2012-11-05 14:09:10 +05:30
.It Fl y, Fl -yes
2012-11-03 15:17:03 +05:30
Assume yes to all questions and avoid interactive questions.
2012-11-05 14:09:10 +05:30
.It Fl V, Fl -version
2012-11-03 15:17:03 +05:30
Shows the XBPS version.
.Sh FILES
.Bl -tag -width xxxxxxxxxxxxxxxxxxxx
.It Ar /etc/xbps/xbps.conf
Default XBPS configuration file.
.It Ar /var/cache/xbps
Default XBPS cache directory.
.Sh SEE ALSO
.Xr xbps-create 8 ,
.Xr xbps-dgraph 8 ,
.Xr xbps-install 8 ,
.Xr xbps-pkgdb 8 ,
.Xr xbps-query 8 ,
.Xr xbps-reconfigure 8 ,
.Xr xbps-rindex 8
.Sh AUTHORS
.An Juan Romero Pardines <xtraeme@gmail.com>
.Sh BUGS
Probably, but I try to make this not happen. Use it under your own
responsability and enjoy your life.
.Pp
Report bugs in http://code.google.com/p/xbps.