FreeBSD Bugzilla – Attachment 199987 Details for
Bug 233894
Improve the handbook section about leaf/automatic packages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch (v2), validated by igor
improve_pkg_section_about_leaf_and_automatic_packages_v2.diff (text/plain), 2.53 KB, created by
Erwan Martin
on 2018-12-09 18:03:47 UTC
(
hide
)
Description:
Patch (v2), validated by igor
Filename:
MIME Type:
Creator:
Erwan Martin
Created:
2018-12-09 18:03:47 UTC
Size:
2.53 KB
patch
obsolete
>Index: en_US.ISO8859-1/books/handbook/ports/chapter.xml >=================================================================== >--- en_US.ISO8859-1/books/handbook/ports/chapter.xml (revision 52615) >+++ en_US.ISO8859-1/books/handbook/ports/chapter.xml (working copy) >@@ -627,12 +627,12 @@ > </sect2> > > <sect2 xml:id="pkgng-autoremove"> >- <title>Automatically Removing Leaf Dependencies</title> >+ <title>Automatically Removing Unused Packages</title> > > <para>Removing a package may leave behind dependencies which > are no longer required. Unneeded packages that were installed >- as dependencies can be automatically detected and removed >- using:</para> >+ as dependencies (leaf packages) can be automatically detected >+ and removed using:</para> > > <screen>&prompt.root; <userinput>pkg autoremove</userinput> > Packages to be autoremoved: >@@ -642,6 +642,49 @@ > > Proceed with autoremoval of packages [y/N]: <userinput>y</userinput> > Deinstalling ca_root_nss-3.15.1_1... done</screen> >+ >+ <para>Packages installed as dependencies are >+ called <emphasis>automatic</emphasis> packages. Non automatic >+ packages, i.e the packages that were explicity installed not >+ as a dependency to another package, can be listed >+ using:</para> >+ >+ <screen>&prompt.root; <userinput>pkg prime-list</userinput> >+nginx >+openvpn >+sudo</screen> >+ >+ <para><command>pkg prime-list</command> is an alias command >+ declared in <filename>/usr/local/etc/pkg.conf</filename>. >+ There are many others that can be used to query the package >+ database of the system. For instance, command >+ <command>pkg prime-origins</command>can be used to get the >+ origin port directory of the list mentioned above:</para> >+ >+ <screen>&prompt.root; <userinput>pkg prime-origins</userinput> >+www/nginx >+security/openvpn >+security/sudo</screen> >+ >+ <para>This list can be used to rebuild all packages >+ installed on a system using build tools such as <package> >+ ports-mgmt/poudriere</package> or <package> >+ ports-mgmt/synth</package></para> >+ >+ <para>Marking an installed package as automatic can be >+ done using:</para> >+ >+ <screen>&prompt.root; <userinput>pkg set -A 1 devel/cmake</userinput></screen> >+ >+ <para>Once a package is a leaf package and is marked >+ as automatic, it gets selected by >+ <command>pkg autoremove</command>.</para> >+ >+ <para>Marking an installed package as NOT automatic can be >+ done using:</para> >+ >+ <screen>&prompt.root; <userinput>pkg set -A 0 devel/cmake</userinput></screen> >+ > </sect2> > > <sect2 xml:id="pkgng-backup">
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 233894
:
199986
| 199987