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

(Difference between pages)
(Configuration)
 
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/
+
* 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

app-portage/gentoolkit


Source Repository:Progress Overlay

Summary: Collection of administration scripts for funtoo


News

Drobbins

RSS/Atom Support

You can now follow this news feed at http://www.funtoo.org/news/atom.xml .
10 February 2015 by Drobbins
Drobbins

Creating a Friendly Funtoo Culture

This news item details some recent steps that have been taken to help ensure that Funtoo is a friendly and welcoming place for our users.
2 February 2015 by Drobbins
Mgorny

CPU FLAGS X86

CPU_FLAGS_X86 are being introduced to group together USE flags managing CPU instruction sets.
31 January 2015 by Mgorny
View More News...

Gentoolkit

Tip

This is a wiki page. To edit it, 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:

# 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

# equery

equery b

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

# 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.

# 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.

# 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.