From Schmid.wiki
Jump to: navigation, search

Vocabulary

ebuild
An ebuild is a bash script that builds a software package.
Portage
Gentoo package management system

Files

/var/log/portage/elog/summary.log - emerge log
/usr/porage/                      - ebuilds by category
/usr/portage/distfiles/           - downloaded source packages
/usr/portage/profiles/use.desc    - USE flag descriptions
/etc/make.conf                    - portage settings
/etc/portage/package.keywords     - package-specific keywords, e.g. '~x86'
/etc/portage/package.use          - package-specific USE flags

Installing necessary tools

emerge -av portage-utils eix

emerge

Emerging a specific version of a package

emerge -av PACKAGE         - install newest version of PACKAGE
emerge -av =PACKAGE-1.2.3  - install PACKAGE version 1.2.3
emerge -Cav PACKAGE        - uninstall PACKAGE
emerge -uav PACKAGE        - update PACKAGE
emerge sync                - update Portage package database

Build, then install

emerge -bav package        - build
emerge -kav package        - install

Dependency Information

What does screen depend upon?

qdepends screen
app-misc/screen-4.0.3: >=sys-libs/ncurses-5.2 virtual/pam >=sys-devel/autoconf-2.58
sys-devel/automake sys-devel/autoconf sys-devel/libtool

What depends upon aalib?

qdepends -Q aalib
media-libs/libsdl-1.2.11-r2

USE Flags

see /usr/portage/profiles/use.desc

Unmasking Packages

Emerging masked packages:

# ACCEPT_KEYWORDS=~x86 emerge somepackage

or:

# echo "somepackage ~x86" >> /etc/portage/package.keywords

Status

Use eix to investigate installed packages

eix -Ic|less

Other interesting stuff

portageq

Show available portage tools

eix -Cc app-portage

References