from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites: www.linuxhowtos.org
toolsntoys.linuxhowtos.org



Last additions:
How to make X listen on port 6000

How to make X listen on port 6000

words:

34

views:

82863

userrating:

average rating: 1.2 (52 votes) (1=very good 6=terrible)


May, 25th 2007:
April, 26th 2007:
Apr, 10th. 2007:
Druckversion . pdf icon
You are here: Tips&Tricks

Portage magic

/var/log/emerge.log is well-known as the central reporitory of information about all emerge activity going on in system.

Lesser known are some tricks you can do with the content of that log file. For example, when you start an upgrade, you generally don't know how much time it will take to finish compiling. You probably don't remember how long your last mplayer installation took, but Portage does, and if you'd decipher the Unix time stamps in /var/log/emerge.log, you'd get a pretty good idea, too.

Or you could let app-portage/genlop do it for you. Emerge (the unstable, ~arch version of) genlop with:

Code Listing 1: Emerge genlop

#emerge -av genlop

Now run a pretended world upgrade and pipe it to genlop for an estimation of your upgrade schedule:

Code Listing 2: Estimate upgrade time

#emerge -pu world | genlop --pretend 
These are the pretended packages: (this may take a while; wait...) 
 
 * media-libs/tiff 
 * x11-base/xorg-x11 
 * app-sci/stellarium 
 * app-arch/gzip 
 * dev-libs/libIDL 
 * net-www/mozilla-firefox 
 * sys-boot/lilo 
 * app-doc/abs-guide 
 * app-arch/unarj 
 * app-emulation/wine 
 * app-admin/sudo 
 
Estimated update time: 4 hours, 38 minutes.

A look at the mechanism explains how Portage can double as an oracle. It uses the statistics stored in the emerge.log file, take an average of compilation times for given packages, and summarize the results. There are some uncertainties, of course, for example if you use the CCACHE feature, then compile times for a minor version bump may be much faster than the original package took compiling the first time. On the other hand, if an application has been extended with new features, the old average compile time can be shorter than the version you're about to emerge.

Another brilliant feature of genlop is its --current option, the perfect companion to the estimated compile-time from --pretend:

Code Listing 3: How much time spent since the beginning of an emerge

# genlop --current 
 * app-portage/splat-0.07  
       current merge time: 12 seconds.

Now you can say how long time you have to wait.

From http://www.gentoo.org/news/en/gwn/20041122-newsletter.xml

back



Support us on Content Nation

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2026-01-19
colordiff - 1.0.22
Ebuild name:

app-misc/colordiff-1.0.22

Description

Colorizes output of diff

Added to portage

2026-01-19

discord - 0.0.120
Ebuild name:

net-im/discord-0.0.120

Description

All-in-one voice and text chat for gamers

Added to portage

2026-01-19

gnome-nettool - 42.0-r1
Ebuild name:

net-analyzer/gnome-nettool-42.0-r1

Description

Graphical front-ends to various networking command-line

Added to portage

2026-01-19

icdiff - 2.0.9
Ebuild name:

app-misc/icdiff-2.0.9

Description

Colourized diff that supports side-by-side diffing

Added to portage

2026-01-19

irker - 2.24-r1
Ebuild name:

net-irc/irker-2.24-r1

Description

Submission tools for IRC notifications

Added to portage

2026-01-19

megatest - 0.6.0
Ebuild name:

dev-ruby/megatest-0.6.0

Description

A test-unit like framework with a focus on usability, designed with CI in m

Added to portage

2026-01-19

openpgp-keys-colordiff - 20260118
Ebuild name:

sec-keys/openpgp-keys-colordiff-20260118

Description

OpenPGP keys used to sign colordiff releases

Added to portage

2026-01-19

openpgp-keys-gmp - 20250628
Ebuild name:

sec-keys/openpgp-keys-gmp-20250628

Description

OpenPGP keys used by Niels Möller (to sign GMP releases)

Added to portage

2026-01-19

openpgp-keys-mpc - 20260118
Ebuild name:

sec-keys/openpgp-keys-mpc-20260118

Description

OpenPGP keys used by Andreas Enge (to sign MPC releases)

Added to portage

2026-01-19

safeeyes - 3.3.1
Ebuild name:

x11-misc/safeeyes-3.3.1

Description

Linux alternative to EyeLeo

Added to portage

2026-01-19

strawberry - 1.2.17
Ebuild name:

media-sound/strawberry-1.2.17

Description

Modern music player and library organizer based on Clementine and Qt

Added to portage

2026-01-19

units - 2.25
Ebuild name:

sci-calculators/units-2.25

Description

Unit conversion program

Added to portage

2026-01-19

vivaldi-snapshot - 7.8.3921.9
Ebuild name:

www-client/vivaldi-snapshot-7.8.3921.9

Description

A browser for our friends

Added to portage

2026-01-19

2026-01-18
async-lru - 2.1.0
Ebuild name:

dev-python/async-lru-2.1.0

Description

Simple lru_cache for asyncio

Added to portage

2026-01-18

blosc - 1.11.4
Ebuild name:

dev-python/blosc-1.11.4

Description

High performance compressor optimized for binary data

Added to portage

2026-01-18

boost-m4 - 0.4_p20221019-r1
Ebuild name:

dev-build/boost-m4-0.4_p20221019-r1

Description

Another set of autoconf macros for compiling against boost

Added to portage

2026-01-18

connection_pool - 3.0.2-r1
Ebuild name:

dev-ruby/connection_pool-3.0.2-r1

Description

Generic connection pooling for Ruby

Added to portage

2026-01-18

dulwich - 1.0.0
Ebuild name:

dev-python/dulwich-1.0.0

Description

Pure-Python implementation of the Git file formats and protocols

Added to portage

2026-01-18

hg-evolve - 11.1.10
Ebuild name:

dev-vcs/hg-evolve-11.1.10

Description

enables the changeset evolution feature of Mercurial

Added to portage

2026-01-18

imapclient - 3.1.0
Ebuild name:

dev-python/imapclient-3.1.0

Description

easy-to-use, pythonic, and complete IMAP client library

Added to portage

2026-01-18

maxitest - 6.2.0
Ebuild name:

dev-ruby/maxitest-6.2.0

Description

Minitest + all the features you always wanted

Added to portage

2026-01-18

mercurial - 7.1.2-r1
Ebuild name:

dev-vcs/mercurial-7.1.2-r1

Description

Scalable distributed SCM

Added to portage

2026-01-18

moto - 5.1.20
Ebuild name:

dev-python/moto-5.1.20

Description

Mock library for boto

Added to portage

2026-01-18

opensmtpd - 7.8.0_p0
Ebuild name:

mail-mta/opensmtpd-7.8.0_p0

Description

Lightweight but featured SMTP daemon from OpenBSD

Added to portage

2026-01-18

sbsigntools - 0.9.5
Ebuild name:

app-crypt/sbsigntools-0.9.5

Description

Utilities for signing and verifying files for UEFI Secure Boot

Added to portage

2026-01-18

scummvm - 2026.1.0
Ebuild name:

games-engines/scummvm-2026.1.0

Description

Reimplementation of the SCUMM game engine used in Lucasarts adventur

Added to portage

2026-01-18

trimesh - 4.11.1
Ebuild name:

dev-python/trimesh-4.11.1

Description

Python library for loading and using triangular meshes

Added to portage

2026-01-18

untrunc - 0_pre20260112
Ebuild name:

media-video/untrunc-0_pre20260112

Description

Restore truncated mp4/mov files

Added to portage

2026-01-18

vdr-fritzbox - 1.5.8
Ebuild name:

media-plugins/vdr-fritzbox-1.5.8

Description

VDR Plugin Inform about incoming phone-calls and use the fritz pho

Added to portage

2026-01-18

xmlschema - 4.3.1
Ebuild name:

dev-python/xmlschema-4.3.1

Description

An XML Schema validator and decoder

Added to portage

2026-01-18

rdf newsfeed | rss newsfeed | Atom newsfeed
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
- Copyright and legal notices -
Time to create this page: 63.2 ms