<commit_before>.Dd October 12, 2013
.Os Void Linux
.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
utility removes installed packages in the target root directory.
Removing a package involves some steps:
.Pp
.Sy *
Executes the
.Sy pre-remove
action on its
.Sy REMOVE
script.
.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 *
Executes the
.Sy post-remove
action on its
.Sy REMOVE
script.
.Pp
.Sy *
Changes package state to
.Sy XBPS_PKG_STATE_HALF_REMOVED .
.Pp
.Sy *
Executes the
.Sy purge
action on its
.Sy REMOVE
script.
.Pp
.Sy *
Package metadata file is removed.
.Pp
.Sy *
Package is unregistered from package database.
.Pp
.Sh OPTIONS
.Bl -tag -width -x
.It Fl C, Fl -config Ar file
Specifies a full path to the XBPS configuration file.
.It Fl c, Fl -cachedir Ar dir
Specifies a full path to the cache directory, where binary packages are stored.
.It Fl d, Fl -debug
Enables extra debugging shown to stderr.
.It Fl F, Fl -force-revdeps
Forcefully remove package even if there are reverse dependencies (DANGEROUS!).
.It Fl f, Fl -force
Forcefully remove package files even if they have been modified.
.It Fl h, Fl -help
Show the help usage.
.It Fl n, Fl -dry-run
Dry-run mode. Show what actions would be done but don't remove anything.
.It Fl O, Fl -clean-cache
Cleans cache directory removing obsolete binary packages.
.It Fl o, Fl -remove-orphans
Removes installed package orphans that were installed automatically
(as dependencies) and are not currently dependencies of any installed package.
.It Fl R, Fl -recursive
Recursively remove packages that were installed by
.Ar PKGNAME
and aren't required by other installed packages.
.It Fl r, Fl -rootdir Ar dir
Specifies a full path for the target root directory.
.It Fl v, Fl -verbose
Enables verbose messages.
.It Fl y, Fl -yes
Assume yes to all questions and avoid interactive questions.
.It Fl V, Fl -version
Shows the XBPS version.
.Sh FILES
.Bl -tag -width /var/db/xbps/.<pkgname>.plist
.It Ar /etc/xbps/xbps.conf
Default configuration file.
.It Ar /var/db/xbps/.<pkgname>.plist
Package metadata properties.
.It Ar /var/db/xbps/pkgdb-0.21.plist
Default package database (0.21 format). Keeps track of installed packages and properties.
.It Ar /var/cache/xbps
Default cache directory to store downloaded binary packages.
.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 <NAME> <<EMAIL>>
.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 https://github.com/xtraeme/xbps/issues
<commit_msg>xbps-remove.8: explain how to show the pkg remove script.<commit_after>.Dd December 17, 2013
.Os Void Linux
.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
utility removes installed packages in the target root directory.
Removing a package involves the following steps:
.Pp
.Sy *
Executes the
.Sy pre
ACTION on its
.Sy REMOVE
script (which can be shown by running
.Sy `xbps-query --property=remove-script pkg`
).
.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 *
Executes the
.Sy post
ACTION on its
.Sy REMOVE
script (which can be shown by running
.Sy `xbps-query --property=remove-script pkg`
).
.Pp
.Sy *
Changes package state to
.Sy XBPS_PKG_STATE_HALF_REMOVED
in the package database.
.Pp
.Sy *
Executes the
.Sy purge
ACTION on its
.Sy REMOVE
script (which can be shown by running
.Sy `xbps-query --property=remove-script pkg`
).
.Pp
.Sy *
Package metadata file is removed.
.Pp
.Sy *
Package is unregistered from package database.
.Pp
.Sh OPTIONS
.Bl -tag -width -x
.It Fl C, Fl -config Ar file
Specifies a full path to the XBPS configuration file.
.It Fl c, Fl -cachedir Ar dir
Specifies a full path to the cache directory, where binary packages are stored.
.It Fl d, Fl -debug
Enables extra debugging shown to stderr.
.It Fl F, Fl -force-revdeps
Forcefully remove package even if there are reverse dependencies (DANGEROUS!).
.It Fl f, Fl -force
Forcefully remove package files even if they have been modified.
.It Fl h, Fl -help
Show the help usage.
.It Fl n, Fl -dry-run
Dry-run mode. Show what actions would be done but don't remove anything.
.It Fl O, Fl -clean-cache
Cleans cache directory removing obsolete binary packages.
.It Fl o, Fl -remove-orphans
Removes installed package orphans that were installed automatically
(as dependencies) and are not currently dependencies of any installed package.
.It Fl R, Fl -recursive
Recursively remove packages that were installed by
.Ar PKGNAME
and aren't required by other installed packages.
.It Fl r, Fl -rootdir Ar dir
Specifies a full path for the target root directory.
.It Fl v, Fl -verbose
Enables verbose messages.
.It Fl y, Fl -yes
Assume yes to all questions and avoid interactive questions.
.It Fl V, Fl -version
Shows the XBPS version.
.Sh FILES
.Bl -tag -width /var/db/xbps/.<pkgname>.plist
.It Ar /etc/xbps/xbps.conf
Default configuration file.
.It Ar /var/db/xbps/.<pkgname>.plist
Package metadata properties.
.It Ar /var/db/xbps/pkgdb-0.21.plist
Default package database (0.21 format). Keeps track of installed packages and properties.
.It Ar /var/cache/xbps
Default cache directory to store downloaded binary packages.
.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 <NAME> <<EMAIL>>
.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 https://github.com/xtraeme/xbps/issues

{'fraction_non_alphanumeric': 0.08092868988391376, 'fraction_numerical': 0.0067993366500829185, 'mean_word_length': 3.555135951661631, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4485744', 'n_tokens_mistral': 2067, 'n_tokens_neox': 1958, 'n_words': 929}