Id:Entropy

From Sabayon Wiki
Revision as of 04:07, 23 February 2010 by Uci (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
i18n: ca en es fr id it pl pt ru Tr

Tentang Entropy

The Entropy Project Logo

Entropy adalah nama dari Sabayon Linux binary package management system. Ini adalah nama dari infrastruktur lengkap, terdiri dari Equo client (textual), Sulfur client (graphical), pengagenan kembali dan aktivator aplikasi server.

Beberapa penekanan:

  • Gentoo Linux compatible
  • Takes the best from Portage, Yum and APT
  • Fast as lightning
  • SQLite Powered (embedded)
  • Smart and User Centric
  • Powerful Packages: multiple packages inside one single archive (Smart Packages)
  • Supports self-contained applications (Smart Applications)
  • Backward Compatible Packages: they can be used on Gentoo Linux after a quick conversion
  • Multiple branches support (each branch is a release version)
  • Database corruptions aware: rescue and system health scanning tools included
  • Easy to deploy and use in a Network Environment
  • Multiple repositories aware: everyone can create one
  • Extensible and Human Understandable API
  • Strongest Artificial Intelligence (Entropy has a brain)
  • Great sense of humor, and much more...

Apakah sarasan utama dari Entropy?

Ada beberapa alasan utama pembuatan Eentropy:

  • Providing better efficiency, extraordinary speed, less power consumption to Sabayon Linux systems, bringing Sabayon one of the TOP leading Linux distributions.
  • Unlock Gentoo to resource constrained hardware or where CPU power shouldn't be wasted by compilers
  • Provide an easy and modern way to handle a Gentoo-based systems while keeping independent from Portage codebase and at the same time being 100% compatible
  • Providing a higher grade of AI in package managers arena: Entropy guesses users' need and acts consequentially
  • Proposing a new POV for developers: Web 2.0 revolution applied to package managers, being Desktop-wise, user friendly and bringing new ideas for a key component of a Linux desktop system

Installing Entropy

Question.png
Currently, the releases supporting Entropy are: Sabayon Linux 3.5 and above.

There are 2 supported ways to install Entropy, using the Sabayon Linux portage overlay, and secondly by using Equo itself. This is possible as all versions of Sabayon Linux after 3.5 come with Entropy installed by default. It is recommended to use Entropy with all current Sabayon releases.

Note: Installing it on Gentoo Linux or on any other release is not supported officially although it is possible.

Installing Entropy using Portage

Installing via portage can be completed using the procedure listed below, open a terminal (such as konsole) and enter the commands:

1. Become root (enter the root password when prompted).

# su

2. Update the Sabayon overlay:

# layman --sync sabayon

That will update the overlay to the latest version

3. Emerge Entropy and sulfur to download and install the latest version of Entropy

# emerge entropy sulfur

4. To test its working run:

# equo --version

If you get a version number such as:

Equo: v0.15.23.7

Then it has installed and is working! w00t.

Updating Entropy using Equo

As of version 3.5 of Sabayon, entropy has been included by default. To update it to the latest (and greatest) version enter open a terminal (such as konsole) and enter the commands shown below.

1. Become root (enter the root password when prompted).

# su

2. Update the Equo Database:

# equo update

That will update the database to the latest version 3. Download and install the latest version of Entropy

# equo install entropy sulfur

4. To test its working run:

# equo --version

If you get a version number such as:

Equo: v0.15.23.7

Then it has installed and is working! w00t.

Packages Entropy Downloads

They are downloaded and stored in /var/lib/entropy/packages/ for instance on my amd64 using branch 4 they are stored in /var/lib/entropy/packages/amd64/4

You can use the command below to clear em out

    #equo cleanup

About Equo

Equo in Action
For more information see the Equo main entry

Equo is the command line client side application for the Entropy system. It is capable of installing, removing and updating packages, resolving dependences, reverse dependency handling and configuration file handling and that's just to start with.

Basic Usage

There are several options you can use when using Equo, a few of the basic commands are shown below.

Searching for a package can be accomplished by running the equo search command:

# equo search <package name>

To install a package use the install function, the --ask amendment is optional but recommended.

# equo install <package> --ask

To remove a package use the remove function as shown below:

# equo remove <package>

To update all your packages to the latest versions use this command:

# equo world --ask

En:List Of Equo Functions

About Sulfur

The Sulfur UI

Sulfur is the GUI (Graphical User Interface) to Equo, the Sabayon Linux Binary Package Manager.

Features

  • Easy to use and learn interface
  • New user friendly
  • Automatic update selection
  • Easy installation of masked packages
  • Community repository support
  • And more!

Usage

For a detailed usage guide please see the Sulfur page which contains a visual walk through of all the features.

Package Repositories

What are Package Repositories

Repositories are a storage location from which software packages may be retrieved and installed on a computer. Sabayon's Repositories contain over 6000 differnt packages.

Community Repositories

For more information see the Community Repositories main entry

Community Repositories are user-managed packages repositories, users can recompile packages with different settings, add their own ones and make all available to other people. Repository publishers are responsible of how a package is compiled and what is compiled.

Updating Package Repositories

To update your all repositories in your /etc/entropy/repositories.conf run (as root)

# equo update

Use the same file to add additional repositories. Currently what is in the repositories.conf is all that is available.

Masking and Unmasking Packages in Entropy

You can find the files to edit in /etc/entropy/packages/ Use package.mask to mask a file, see package.mask.example for more information. Use package.unmask to unmask a file, see package.unmask.example for more information.

Adding Additional Packages Manually

Sabayon Linux Package Repository

You can download packages and place them into the package directory for entropy to use. See Where to Put Packages

Fresh Install - What to do?

So you just installed a fresh copy of Sabayon Linux and wondering what to do next.

The first thing to do is of course learn the package manager, it is vital to know your package manager. So read first, then do.

Now that you learned about the package manager, lets get our package list for the package managers current. You will have to be root to use the commands so open a terminal and enter su with your password and if you did it right your prompt will change to # DO NOT sudo

    # equo update

If you run into problems with that try

    # equo update --force

We changed the overlay to git now, so for <4.1 version you need to

  • this step is optional but recommended*
    # layman -d sabayon
    # layman -L
    # layman -a sabayon

If it complains about not having git installed, than do

    # equo install dev-util/git

We should also update portage package list in case you need to use layman to get the latest entropy in case you run into troubles with above commands. *This step is optional.* but if you have problems getting entropy working, you will need this step to get latest version from overlay.

    # emerge --sync && layman -S

Once you have that completed it is best to get entropy updated to the latest version before doing a world update. World update will bring your system to current development. Note - the first emerge --sync is a little time consuming, but it's a one time deal.

    # equo install entropy sulfur equo
    # equo conf update

Now if you have problems getting the equo update to function or problems getting latest entropy installed, you can use emerge to get the latest, follow below for how to install via emerge

    # emerge entropy equo sulfur

Hopefully now you are ready to start the updating process.

    # equo world --ask

Follow along on the screen as it will show you what it is going to do and ask for confirmations. The world update will download all the binary files then install the packages. Time of process depends on how many packages, bandwidth and hardware. After it is done, make sure to

    # equo conf update

You will want to make your selection but you really should get to know your config files as they will change your system. More than likely most will select -5. I always look over the config files as I don't want some of my configs getting overwrote.

Before you reboot you should check somethings first, please look at this thread to see what I mean. There can be critical things to take care of first before you can safely reboot. Generally it's not a big issue, but a kernel change does require some additonal work. You will need to reinstall your drivers/modules to match the kernel driver.

So now that you are rebooted and everything is working fine, all you need to do daily or weekly is

    # equo update && equo world --ask

Make sure you also grab the kernel sources

    # equo install linux-sabayon-sources

What about using sulfur? I do not recommend using sulfur for the initial world update. equo is 100x's more reliable and you won't end up with the issues that sulfur can cause. So do your initial with equo then look at using Sulfur after that.

You should keep your portage list updated from time to time also just to be safe. You don't have to do it daily, but maybe once a week.

  • note: you do not have to do this step at all, until or unless you run into problems. The following step only speeds up the process later by wasting the time doing it now.*
    # emerge --sync && layman -S

Hopping Branches

Switching branches is as easy as typing equo hop [branch], replace the [branch] with the one you want to hop to. So lets say we are using Sabayon Linux 4.2 and want to jump to branch 5, all we have to do is. (As of this writing Branch 5 is not stable or supported yet)

    #equo hop 5

Now we need to update our package list with new branch

    #equo update

Always get the latest package manager first

    #equo install entropy equo sulfur

Now you are ready to start your upgrade.

    #equo upgrade

There could be many packages involved with this and can be time consuming so plan a head for this before doing. Also see thread http://forum.sabayonlinux.org/viewtopic.php?f=54&t=16399 for some good learning on things you will need to check.

Update your config files when done with upgrade

   #equo conf update

Before rebooting

 -- check your kernel with eselect kernel list and make sure it is correct latest kernel selected, it will have the * next to it.
 -- check gcc version gcc-config -l and make sure it is on latest one
 -- check binutils-config -l and make sure it's set
 -- check eselect opengl list for right driver
 -- check /boot/grub/grub.conf to make sure it updated properly
 -- check eselect python list and make sure it's set to the latest one

Do not ever go backwards with your branches, meaning, don't go from Branch 5 back to Branch 4.

Testing Branch / Rolling Releases

Warning - Read first

Stop.png
This branch of Entropy is dangerous. Read this section from beginning to end before doing anything with it.

Let us quickly go through the most common factors that make running the testing branch impractical:

  • A good amount of experience with Portage and related tools is crucial to fix problems that are likely to arise when using the testing branch. Reporting problems encountered on this branch is good and helps with the Sabayon development process, but it is not a way for you to get a fix quickly. Only Portage is likely to do that for you.
  • Solid understanding of Linux (OS including programs) is highly important, too. You can expect to be confronted with new configuration options and non-trivial problems. You will need pretty extensive knowledge to either diagnose and solve, or work around these problems, at a point in time when they have little to no distribution-specific documentation yet - sometimes not even any good documentation at all.
  • High maintenance - just to explicitly state the other consequence of the two points directly above.
  • High bandwidth consumption - there are some package updates almost every day, and the amount of updates can easily hit a few hundred MB every week.


If you have any doubt about meeting one or more of the criteria outlined before, but need or want to use the testing branch / rolling releases anyways, it is strongly recommended that you make use of some virtualization software (and its snapshotting features), rather than deploying the testing branch in your main installation. That way, if some operation goes wrong, you typically won't need to resolve any issues, but can just revert to the last working snapshot - which will in turn allow you to try a more selective operation, or simply defer the operation until later. Modern virtualization software can interact fairly nicely with the host, like displaying windows as if they were part of the host, or share files between host and guest, so this should be the way to go even if you need the most recent version of some program in day-to-day use.

Basically use it on your own risk, don't blame us if anything breaks and your system doesn't work since its unsupported at this stage. We did tell you about the risks and what is good to think over before adding the limbo repo.

Setting it up

You can add this to /etc/entropy/repositories.conf:

    repository|sabayon-limbo|Sabayon Linux Limbo Repository|http://pkg.sabayon.org%7Chttp://pkg.sabayon.org#bz2

Our next release is from packages that are put into the Limbo Repository. This will keep you rolling consistently all the time. This prevents the large amount of packages that hops cause. You will run into bugs/issues at times, but they are usually sorted pretty quickly.

So after adding that line you can than simple

    #equo update
    #equo upgrade

How often you do it is up to you. Once a day or once a week, whatever works for you.

Adding Entropy Mirror

file to edit - /etc/entropy/repositories.conf

You may notice a big slow down with entropy and Limbo Repo, please add this mirror under your existing Limbo line

    repository|sabayon-limbo|Sabayon Linux Limbo Repository|http://na.mirror.garr.it/mirrors/sabayonlinux/entropy/%7Chttp://na.mirror.garr.it/mirrors/sabayonlinux/entropy#bz2

so it should look like

    repository|sabayon-limbo|Sabayon Linux Limbo Repository|http://svn.sabayonlinux.org/entropy%7Chttp://svn.sabayonlinux.org/entropy#bz2
    repository|sabayon-limbo|Sabayon Linux Limbo Repository|http://na.mirror.garr.it/mirrors/sabayonlinux/entropy/%7Chttp://na.mirror.garr.it/mirrors/sabayonlinux/entropy#bz2

now you should have good speeds again. You may have to put a # in front of the top one to force equo to use garr only. example:

    # repository|sabayon-limbo|Sabayon Linux Limbo Repository|http://svn.sabayonlinux.org/entropy%7Chttp://svn.sabayonlinux.org/entropy#bz2
    repository|sabayon-limbo|Sabayon Linux Limbo Repository|http://na.mirror.garr.it/mirrors/sabayonlinux/entropy/%7Chttp://na.mirror.garr.it/mirrors/sabayonlinux/entropy#bz2

Another thing you can do is make it look like:

    repository|sabayon-limbo|Sabayon Linux Limbo Repository|http://svn.sabayonlinux.org/entropy%7Chttp://svn.sabayonlinux.org/entropy#bz2
    repository|sabayon-limbo||http://na.mirror.garr.it/mirrors/sabayonlinux/entropy%7C

You will still get the update db from svn site, but it should download the packages from garr. I leave the choice up to you.