Difference between pages "Hostname" and "Package:Gentoolkit"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
 
m
 
Line 1: Line 1:
w.i.p
{{Ebuild
==Introduction==
|Summary=Collection of administration scripts for funtoo
A hostname is a unique name created to identify a machine on a network. In computer networking, a hostname  is a label that is assigned to a device connected to a computer network and that is used to identify the device in various forms of electronic communication such as the World Wide Web, e-mail or Usenet. Hostnames may be simple names consisting of a single word or phrase, or they may be structured.
|CatPkg=app-portage/gentoolkit
==Configuration==
}}
In Funtoo Linux, <code>/etc/conf.d/hostname</code> is the master configuration file for setting a hostname. In OpenRC framework <code>/etc/conf.d/foo</code> is the configuration file for a corresponding Init script <code>/etc/init.d/foo</code>.  With the case of hostname, default value is set to ''localhost'', means when system boots and OpenRC's <code>/etc/init.d/hostname</code> script started a hostname getting only ''localhost'' name. How it looks?  In your shell promt this will look in following way, an example for root:
{{PageNeedsUpdates}}
<console>
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 Funtoo Linux system one can install gentoolkit by issuing the following command:
localhost ~ # ##i## Hello :)
<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.  
 
Gentoolkit provides:
* eclean
* enalyze
* equery
* eread
* euse
* glsa-check
* revdep-rebuild
 
== 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
 
<console>###i## equery</console>
 
=== equery b ===
Running equery with the b flag is useful to determine which package a file comes from.
 
<console>###i## equery b /usr/lib/libpam.so
* Searching for /usr/lib/libpam.so ...
sys-libs/pam-1.1.8-r2 (/usr/lib64/libpam.so)
</console>
</console>
Let's play a bit with a configuration. Open <code>/etc/conf.d/hostname</code> with your favorite editor and set a hostname of your choice.  Below, I will use a real examples of my working test box.
 
<console>
=== equery f ===
localhost ~ # ##i## nano /etc/conf.d/hostname
Running equery with the f flag is useful to show all installed files from a package.
 
<console>###i## 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
...
</console>
</console>
Let's set it to hostname="oleg-stable.host.funtoo.org". Save the file and restart  a hostname service:
 
<console>
== glsa-check ==
localhost ~ # ##i## service hostname restart
Glsa-check shows what potential vulnerabilities your system has.
 
<console>###i## 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 )
</console>
</console>
Now, let's examine our changes, after a restarting a hostname
 
<console>
=gentoolkit-dev=
oleg-stable ~ # ##i## Hello :)
This package contains Portage development tools.
</console>
 
Notice, that we seeing a shortened hostname here, and not a FQDN (Fully Qualified Domain Name). Don't be frustrated , this is  how  default bash promt PS1 set. To get nice promts, please, consult http://www.ibm.com/developerworks/library/l-tip-prompt/ <-- this one should be on Funtoo wiki :)
* 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}}

Revision as of 12:33, March 3, 2015

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 Gentoo Linux to administer and develop the Portage package management system. The tools are managed and installed by Portage itself; on a Funtoo Linux system one can install gentoolkit by issuing the following command:

root # emerge gentoolkit

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

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

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.