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:

84485

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-04-19
openssl-compat - 3.6.2
Ebuild name:

dev-libs/openssl-compat-3.6.2

Description

Full-strength general purpose cryptography library (including SSL and

Added to portage

2026-04-19

2026-04-18
autoconf-dickey - 2.52_p20260412
Ebuild name:

dev-build/autoconf-dickey-2.52_p20260412

Description

Fork of dev-build/autoconf for Thomas Dickey's packages

Added to portage

2026-04-18

awscli - 1.44.81
Ebuild name:

app-admin/awscli-1.44.81

Description

Universal Command Line Environment for AWS

Added to portage

2026-04-18

boto3 - 1.42.91
Ebuild name:

dev-python/boto3-1.42.91

Description

The AWS SDK for Python

Added to portage

2026-04-18

botocore - 1.42.91
Ebuild name:

dev-python/botocore-1.42.91

Description

Low-level, data-driven core of boto 3

Added to portage

2026-04-18

cargo-audit - 0.22.1
Ebuild name:

dev-util/cargo-audit-0.22.1

Description

Audit Cargo.lock for crates with security vulnerabilities

Added to portage

2026-04-18

cflow - 1.8
Ebuild name:

dev-util/cflow-1.8

Description

C function call hierarchy analyzer

Added to portage

2026-04-18

clojure-clr - 1.12.2
Ebuild name:

dev-lang/clojure-clr-1.12.2

Description

Port of the functional programming language Clojure to the CLR and .NET

Added to portage

2026-04-18

csharp-language-server - 0.24.0
Ebuild name:

dev-dotnet/csharp-language-server-0.24.0

Description

Roslyn-based LSP language server for C

Added to portage

2026-04-18

diffstat - 1.69
Ebuild name:

dev-util/diffstat-1.69

Description

Display a histogram of diff changes

Added to portage

2026-04-18

drawio-desktop-bin - 29.6.6
Ebuild name:

app-office/drawio-desktop-bin-29.6.6

Description

draw.io diagramming and whiteboarding desktop app

Added to portage

2026-04-18

faker - 40.14.1
Ebuild name:

dev-python/faker-40.14.1

Description

A Python package that generates fake data for you

Added to portage

2026-04-18

fj-cli - 0.5.0
Ebuild name:

dev-util/fj-cli-0.5.0

Description

CLI tool for Forgejo

Added to portage

2026-04-18

flask-caching - 2.4.0
Ebuild name:

dev-python/flask-caching-2.4.0

Description

Adds caching support to Flask applications

Added to portage

2026-04-18

gamescope - 3.16.23
Ebuild name:

gui-wm/gamescope-3.16.23

Description

Efficient micro-compositor for running games

Added to portage

2026-04-18

gzip - 1.14_p20260418
Ebuild name:

app-arch/gzip-1.14_p20260418

Description

Standard GNU compressor

Added to portage

2026-04-18

hg-git - 1.2.0_p20260328
Ebuild name:

dev-vcs/hg-git-1.2.0_p20260328

Description

push to and pull from a Git repository using Mercurial

Added to portage

2026-04-18

identify - 2.6.19
Ebuild name:

dev-python/identify-2.6.19

Description

File identification library for Python

Added to portage

2026-04-18

indent - 2.2.13-r1
Ebuild name:

dev-util/indent-2.2.13-r1

Description

Indent program source files

Added to portage

2026-04-18

ktextaddons - 2.0.1-r1
Ebuild name:

dev-libs/ktextaddons-2.0.1-r1

Description

Various text handling addons

Added to portage

2026-04-18

lcms - 2.18
Ebuild name:

media-libs/lcms-2.18

Description

A lightweight, speed optimized color management engine

Added to portage

2026-04-18

libburn - 1.5.8
Ebuild name:

dev-libs/libburn-1.5.8

Description

Open-source library for reading, mastering and writing optical discs

Added to portage

2026-04-18

libisoburn - 1.5.8
Ebuild name:

dev-libs/libisoburn-1.5.8

Description

Creation/expansion of ISO-9660 filesystems on CD/DVD media supported by l

Added to portage

2026-04-18

libisofs - 1.5.8_p1
Ebuild name:

dev-libs/libisofs-1.5.8_p1

Description

Open-source library for reading, mastering and writing optical discs

Added to portage

2026-04-18

mac - 12.67
Ebuild name:

media-sound/mac-12.67

Description

Monkey's Audio Codecs

Added to portage

2026-04-18

marisa - 0.3.1-r1
Ebuild name:

dev-libs/marisa-0.3.1-r1

Description

Matching Algorithm with Recursively Implemented StorAge

Added to portage

2026-04-18

mediafile - 0.16.2
Ebuild name:

dev-python/mediafile-0.16.2

Description

Read and write audio files' tags in Python

Added to portage

2026-04-18

meson - 1.11.0
Ebuild name:

dev-build/meson-1.11.0

Description

Open source build system

Added to portage

2026-04-18

mimetreeparser - 26.04.0-r1
Ebuild name:

kde-apps/mimetreeparser-26.04.0-r1

Description

Libraries for messaging functions

Added to portage

2026-04-18

nprolog - 5.11
Ebuild name:

dev-lang/nprolog-5.11

Description

Interpreter and compiler to be compatible with Arity/Prolog32

Added to portage

2026-04-18

nprolog - 5.15
Ebuild name:

dev-lang/nprolog-5.15

Description

Interpreter and compiler to be compatible with Arity/Prolog32

Added to portage

2026-04-18

nss - 3.123
Ebuild name:

dev-libs/nss-3.123

Description

Mozilla's Network Security Services library that implements PKI support

Added to portage

2026-04-18

pelican-minify - 2.0.2
Ebuild name:

dev-python/pelican-minify-2.0.2

Description

An HTML minification plugin for Pelican, the static site generator

Added to portage

2026-04-18

pyamg - 5.3.0-r1
Ebuild name:

dev-python/pyamg-5.3.0-r1

Description

Algebraic multigrid solvers in Python

Added to portage

2026-04-18

pydantic - 2.13.2
Ebuild name:

dev-python/pydantic-2.13.2

Description

Data parsing and validation using Python type hints

Added to portage

2026-04-18

ruff - 0.15.11
Ebuild name:

dev-util/ruff-0.15.11

Description

An extremely fast Python linter, written in Rust

Added to portage

2026-04-18

rust - 1.95.0
Ebuild name:

dev-lang/rust-1.95.0

Description

Systems programming language originally developed by Mozilla

Added to portage

2026-04-18

rust-bin - 1.95.0
Ebuild name:

dev-lang/rust-bin-1.95.0

Description

Added to portage

2026-04-18

rust-common - 1.95.0
Ebuild name:

dev-lang/rust-common-1.95.0

Description

Common files shared between multiple slots of Rust

Added to portage

2026-04-18

rustup - 1.29.0
Ebuild name:

dev-util/rustup-1.29.0

Description

Rust toolchain installer

Added to portage

2026-04-18

simdjson - 4.6.2
Ebuild name:

dev-libs/simdjson-4.6.2

Description

SIMD accelerated C++ JSON library

Added to portage

2026-04-18

spectacle - 6.6.4-r1
Ebuild name:

kde-plasma/spectacle-6.6.4-r1

Description

Screenshot capture utility

Added to portage

2026-04-18

strawberry - 1.2.19
Ebuild name:

media-sound/strawberry-1.2.19

Description

Modern music player and library organizer based on Clementine and Qt

Added to portage

2026-04-18

swig - 4.4.1
Ebuild name:

dev-lang/swig-4.4.1

Description

Simplified Wrapper and Interface Generator

Added to portage

2026-04-18

typescript - 6.0.3
Ebuild name:

dev-lang/typescript-6.0.3

Description

Superset of JavaScript with optional static typing, classes and interface

Added to portage

2026-04-18

valgrind - 3.27.0_rc2
Ebuild name:

dev-debug/valgrind-3.27.0_rc2

Description

An open-source memory debugger for GNU/Linux

Added to portage

2026-04-18

wine-vanilla - 11.7
Ebuild name:

app-emulation/wine-vanilla-11.7

Description

Free implementation of Windows(tm) on Unix, without external patchs

Added to portage

2026-04-18

wrapt - 2.2.0_rc10
Ebuild name:

dev-python/wrapt-2.2.0_rc10

Description

Module for decorators, wrappers and monkey patching

Added to portage

2026-04-18

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