注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Package:Gentoolkit"

From Funtoo
Jump to navigation Jump to search
(Add information on eclean command.)
 
(6 intermediate revisions by 2 users not shown)
Line 4: Line 4:
}}
}}
{{PageNeedsUpdates}}
{{PageNeedsUpdates}}
Gentoolkit is a collection of tools used by Gentoo Linux to administer and develop the Portage package management system. The tools are managed and installed by Portage itself; on a Gentoo Linux system one can install gentoolkit by issuing the following command:
Gentoolkit is a collection of tools used by Funtoo Linux to administer and develop the Portage package management system. The tools are managed and installed by Portage itself. Funtoo Linux offer this package as part of  stage3.
<console>###i## emerge gentoolkit</console>


The tools are split into two related packages: gentoolkit and gentoolkit-dev. As with the rest of Portage they are written in Python.  
The tools are split into two related packages: gentoolkit and gentoolkit-dev. As with the rest of Portage they are written in Python.  
Gentoolkit provides:
Gentoolkit provides:
* eclean
* eclean
Line 16: Line 16:
* glsa-check
* glsa-check
* revdep-rebuild
* revdep-rebuild
== eclean ==
Eclean is a tool that cleans old files from the local source file and binary package repositories (called DISTDIR and PKGDIR, respectively).  These repositories will grow indefinitely unless cleaned up.  eclean must be run with an action to specify whether it is cleaning up binary packages or source files.
<console>###i## eclean
!!! Wrong or missing action name on command line.
Usage:
eclean [global-option] ... <action> [action-option] ...
eclean [--help, --version]
Available actions:
packages    - clean outdated binary packages from PKGDIR
distfiles    - clean outdated packages sources files from DISTDIR
More detailed instruction can be found in `man eclean` </console>
=== eclean-dist ===
Eclean-dist is the most useful form of the command for most users.  eclean-dist is a shortcut for the "eclean distfiles" command to cleanup the source files that accumulate when you download and install packages.  eclean-dist will also report any installed packages that are no longer unavailable. Running eclean-dist regularly from cron or your preferred scheduling package can help conserve storage on systems with limited space.
<console>###i## eclean-dist
* Building file list for distfiles cleaning...
* Your distfiles directory was already clean.
    The following unavailable installed packages were found
            dev-python/attrs-21.2.0</console>


== equery ==
== equery ==
Equery is a tool that displays  information about the installed packages on the system. equery is based on a system of modules, , running it with out arguments displays a list of options
Equery is a tool that displays  information about the installed packages on the system. equery is based on a system of modules. Running it without arguments displays a list of options.


<console>###i## equery</console>
<console>###i## equery</console>
Line 53: Line 80:
201310-15 [N] GNU Automake: Multiple vulnerabilities ( sys-devel/automake )
201310-15 [N] GNU Automake: Multiple vulnerabilities ( sys-devel/automake )
</console>
</console>
=gentoolkit-dev=
This package contains Portage development tools.
* eviewcvs - Generates ViewCVS URLs.
* gensync - Synchronize local Portage tree against an arbitrary upstream repository.
* ekeyword - Change/update keywords in a set of ebuilds.
* ebump - Bump the revision number of an ebuild and all support files.
* echangelog - Automatically create ebuild changelog entries.
{{EbuildFooter}}
{{EbuildFooter}}

Latest revision as of 06:23, June 11, 2022

Gentoolkit

   Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Gentoolkit is a collection of tools used by Funtoo Linux to administer and develop the Portage package management system. The tools are managed and installed by Portage itself. Funtoo Linux offer this package as part of stage3.

The tools are split into two related packages: gentoolkit and gentoolkit-dev. As with the rest of Portage they are written in Python.

Gentoolkit provides:

  • eclean
  • enalyze
  • equery
  • eread
  • euse
  • glsa-check
  • revdep-rebuild

eclean

Eclean is a tool that cleans old files from the local source file and binary package repositories (called DISTDIR and PKGDIR, respectively). These repositories will grow indefinitely unless cleaned up. eclean must be run with an action to specify whether it is cleaning up binary packages or source files.

root # eclean
!!! Wrong or missing action name on command line.

Usage:
 eclean [global-option] ... <action> [action-option] ...
 eclean [--help, --version]

Available actions:
 packages     - clean outdated binary packages from PKGDIR
 distfiles    - clean outdated packages sources files from DISTDIR

More detailed instruction can be found in `man eclean` 

eclean-dist

Eclean-dist is the most useful form of the command for most users. eclean-dist is a shortcut for the "eclean distfiles" command to cleanup the source files that accumulate when you download and install packages. eclean-dist will also report any installed packages that are no longer unavailable. Running eclean-dist regularly from cron or your preferred scheduling package can help conserve storage on systems with limited space.

root # eclean-dist

* Building file list for distfiles cleaning...
* Your distfiles directory was already clean.
    The following unavailable installed packages were found
             dev-python/attrs-21.2.0


equery

Equery is a tool that displays information about the installed packages on the system. equery is based on a system of modules. Running it without arguments displays a list of options.

root # equery

equery b

Running equery with the b flag is useful to determine which package a file comes from.

root # equery b /usr/lib/libpam.so
 * Searching for /usr/lib/libpam.so ... 
sys-libs/pam-1.1.8-r2 (/usr/lib64/libpam.so)

equery f

Running equery with the f flag is useful to show all installed files from a package.

root # equery f domination
 * Searching for domination ...
 * Contents of games-board/domination-1.1.1.5:
/usr
/usr/games
/usr/games/bin
/usr/games/bin/domination
...

glsa-check

Glsa-check shows what potential vulnerabilities your system has.

root # glsa-check -l
[A] means this GLSA was marked as applied (injected),
[U] means the system is not affected and
[N] indicates that the system might be affected.

201310-15 [N] GNU Automake: Multiple vulnerabilities ( sys-devel/automake )

gentoolkit-dev

This package contains Portage development tools.

  • eviewcvs - Generates ViewCVS URLs.
  • gensync - Synchronize local Portage tree against an arbitrary upstream repository.
  • ekeyword - Change/update keywords in a set of ebuilds.
  • ebump - Bump the revision number of an ebuild and all support files.
  • echangelog - Automatically create ebuild changelog entries.