From Funtoo
Revision as of 00:13, October 8, 2013 by BlackNoxis (talk)
Jump to: navigation, search

Entropy Package Management in Gentoo

Entropy Package Manager is written by Fabio Erculliani from Sabayon GNU/Linux as an extension to Portage in order to professionally install binary package same as in other binary-based distros. The package manager syncronises itself automatically with Portage once you installed entropy binary packages, but instead Portage must be syncronised with Entropy in order for Entropy to know what packages you have emerged. Fully written in python, it is a stable application with many binary-oriented features and options, including a complete set of repository creation and entropy server features fully based on Portage ebuild packaging. Henceforth, developers must ( there is no other way ) emerge packages in order to create entropy packages, the procedure will be detailed in this tutorial.

Instructions of creating your own Entropy Repository

First of all, you must have package named entropy-server instaled. It contains a /etc/entropy/server.conf that itself contains the next, most important lines of the configuration:

 community-mode = enable < if you wish to cope with more than 1 repository in one system

 community-mode = disable <if you want to have a self-sustainable dependency repository 
 default-repository = yourreponame 
 #example: #=> repository = myserverrepo|My Server Repository|ftp://user:pass@ ssh://username@host:~user/path:port just an example of repo mode
 repository = yourreponame|My Server Repository|ftp://user:pass@ ssh://username@host:~user/path:port

The rest of them you don't need necessarily to bother. Of course, as in the example, you of course need either a SSH server or FTP server with upload permissions, of course. The structure of the repository should look like this:


P.S.: I considered this step as being the most important one, since everybody firstly installs the package before reading the article/tutorial on how to use :)

Installation and package management instructions

Start emerging the following packages:

 emerge sys-apps/entropy equo entropy-server -vp

It should produce something like this: http://pastebin.com/cy7X38ia ( public and permanent pastebin ). Notes: these packages have been built on 5 minutes funtoo tar.gz unpacking and chrooting and after, of course, a emerge --sync and a eselect profile set. You should have now a working equo, so run the command: equo --help. Should show up all the help commands:

 blacknoxis / # equo --help
 usage: equo [-h] [--color]

In this moment you should have a working repository and SSH/FTP server with /etc/entropy/server.conf pointed to it.

Working with EIT

First things first, you must 'regenerate' the Entropy database system by running the command:

 equo rescue generate

EIT is the tool that actually packages already emerged packages and introduces them into your remote repository. First initialize repo ( after configurind your /etc/entropy/server.conf ) with the command:

 eit init reponame

And a demonstration of adding a package to a repo by using these three commands:

 emerge packagename
 eit add packagename
 eit push

All demo in: http://pastebin.com/k3PNpPdD ( public permanent pastebin )