pkg-autoremove.8
1 .\" 2 .\" FreeBSD pkg - a next generation package for the installation and maintenance 3 .\" of non-core utilities. 4 .\" 5 .\" Redistribution and use in source and binary forms, with or without 6 .\" modification, are permitted provided that the following conditions 7 .\" are met: 8 .\" 1. Redistributions of source code must retain the above copyright 9 .\" notice, this list of conditions and the following disclaimer. 10 .\" 2. Redistributions in binary form must reproduce the above copyright 11 .\" notice, this list of conditions and the following disclaimer in the 12 .\" documentation and/or other materials provided with the distribution. 13 .\" 14 .\" 15 .\" @(#)pkg.8 16 .\" 17 .Dd May 3, 2021 18 .Dt PKG-AUTOREMOVE 8 19 .Os 20 .Sh NAME 21 .Nm "pkg autoremove" 22 .Nd removes orphan packages 23 .Sh SYNOPSIS 24 .Nm 25 .Op Fl Dnqy 26 .Pp 27 .Nm 28 .Op Cm --{dry-run,no-scripts,quiet,yes} 29 .Sh DESCRIPTION 30 .Nm 31 is used for removing orphan packages, which were installed 32 during dependency resolution and are no longer needed. 33 .Sh OPTIONS 34 The following options are supported by 35 .Nm : 36 .Bl -tag -width dry-run 37 .It Fl n , Cm --dry-run 38 Dry-run mode. 39 The list of changes to packages is always printed, but 40 no changes are actually made. 41 .It Fl D , Cm --no-scripts 42 If a deinstallation script exists for a given package, do not execute it. 43 .It Fl q , Cm --quiet 44 Force quiet output. 45 .It Fl y , Cm --yes 46 Assume yes when asked for confirmation before package autoremoval. 47 .El 48 .Sh ENVIRONMENT 49 The following environment variables affect the execution of 50 .Nm . 51 See 52 .Xr pkg.conf 5 53 for further description. 54 .Bl -tag -width ".Ev NO_DESCRIPTIONS" 55 .It Ev DEFAULT_ALWAYS_YES 56 .It Ev ASSUME_ALWAYS_YES 57 .It Ev HANDLE_RC_SCRIPTS 58 .It Ev PKG_DBDIR 59 .El 60 .Sh FILES 61 See 62 .Xr pkg.conf 5 . 63 .Sh SEE ALSO 64 .Xr pkg_create 3 , 65 .Xr pkg_printf 3 , 66 .Xr pkg_repo_create 3 , 67 .Xr pkg_repos 3 , 68 .Xr pkg-keywords 5 , 69 .Xr pkg-lua-script 5 , 70 .Xr pkg-repository 5 , 71 .Xr pkg-script 5 , 72 .Xr pkg-triggers 5 , 73 .Xr pkg.conf 5 , 74 .Xr pkg 8 , 75 .Xr pkg-add 8 , 76 .Xr pkg-alias 8 , 77 .Xr pkg-annotate 8 , 78 .Xr pkg-audit 8 , 79 .Xr pkg-check 8 , 80 .Xr pkg-clean 8 , 81 .Xr pkg-config 8 , 82 .Xr pkg-create 8 , 83 .Xr pkg-delete 8 , 84 .Xr pkg-fetch 8 , 85 .Xr pkg-help 8 , 86 .Xr pkg-info 8 , 87 .Xr pkg-install 8 , 88 .Xr pkg-key 8 , 89 .Xr pkg-lock 8 , 90 .Xr pkg-plugins 8 , 91 .Xr pkg-query 8 , 92 .Xr pkg-register 8 , 93 .Xr pkg-repo 8 , 94 .Xr pkg-repositories 8 , 95 .Xr pkg-rquery 8 , 96 .Xr pkg-search 8 , 97 .Xr pkg-set 8 , 98 .Xr pkg-shell 8 , 99 .Xr pkg-shlib 8 , 100 .Xr pkg-ssh 8 , 101 .Xr pkg-stats 8 , 102 .Xr pkg-triggers 8 , 103 .Xr pkg-unregister 8 , 104 .Xr pkg-update 8 , 105 .Xr pkg-updating 8 , 106 .Xr pkg-upgrade 8 , 107 .Xr pkg-version 8 , 108 .Xr pkg-which 8