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:

83051

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-02-02
shadow - 4.19.3
Ebuild name:

sys-apps/shadow-4.19.3

Description

Utilities to deal with user accounts

Added to portage

2026-02-02

2026-02-01
caffe2 - 2.10.0-r2
Ebuild name:

sci-ml/caffe2-2.10.0-r2

Description

A deep learning framework

Added to portage

2026-02-01

clang - 23.0.0_pre20260131
Ebuild name:

dev-python/clang-23.0.0_pre20260131

Description

Python bindings for llvm-core/clang

Added to portage

2026-02-01

clang - 23.0.0_pre20260131
Ebuild name:

llvm-core/clang-23.0.0_pre20260131

Description

C language family frontend for LLVM

Added to portage

2026-02-01

clang-common - 23.0.0_pre20260131
Ebuild name:

llvm-core/clang-common-23.0.0_pre20260131

Description

Common files shared between multiple slots of clang

Added to portage

2026-02-01

commons-codec - 1.21.0
Ebuild name:

dev-java/commons-codec-1.21.0

Description

Implementations of common encoders and decoders in Java

Added to portage

2026-02-01

compiler-rt - 23.0.0_pre20260131
Ebuild name:

llvm-runtimes/compiler-rt-23.0.0_pre20260131

Description

Compiler runtime library for clang (built-in part)

Added to portage

2026-02-01

compiler-rt-sanitizers - 23.0.0_pre20260131
Ebuild name:

llvm-runtimes/compiler-rt-sanitizers-23.0.0_pre20260131

Description

Compiler runtime libraries for clang (sanit

Added to portage

2026-02-01

discord - 0.0.122
Ebuild name:

net-im/discord-0.0.122

Description

All-in-one voice and text chat for gamers

Added to portage

2026-02-01

ensurepip-pip - 26.0
Ebuild name:

dev-python/ensurepip-pip-26.0

Description

Shared pip wheel for ensurepip Python module

Added to portage

2026-02-01

evolution - 3.58.3
Ebuild name:

mail-client/evolution-3.58.3

Description

Integrated mail, addressbook and calendaring functionality

Added to portage

2026-02-01

evolution-data-server - 3.58.3
Ebuild name:

gnome-extra/evolution-data-server-3.58.3

Description

Evolution groupware backend

Added to portage

2026-02-01

evolution-ews - 3.58.3
Ebuild name:

gnome-extra/evolution-ews-3.58.3

Description

Evolution module for connecting to Microsoft Exchange Web Services

Added to portage

2026-02-01

flang - 23.0.0_pre20260131
Ebuild name:

llvm-core/flang-23.0.0_pre20260131

Description

LLVM's Fortran frontend

Added to portage

2026-02-01

flang-rt - 23.0.0_pre20260131
Ebuild name:

llvm-runtimes/flang-rt-23.0.0_pre20260131

Description

LLVM's Fortran runtime

Added to portage

2026-02-01

libclc - 23.0.0_pre20260131
Ebuild name:

llvm-core/libclc-23.0.0_pre20260131

Description

OpenCL C library

Added to portage

2026-02-01

libcxx - 23.0.0_pre20260131
Ebuild name:

llvm-runtimes/libcxx-23.0.0_pre20260131

Description

New implementation of the C++ standard library, targeting C

Added to portage

2026-02-01

libcxxabi - 23.0.0_pre20260131
Ebuild name:

llvm-runtimes/libcxxabi-23.0.0_pre20260131

Description

Low level support for a standard C++ library

Added to portage

2026-02-01

libgcc - 23.0.0_pre20260131
Ebuild name:

llvm-runtimes/libgcc-23.0.0_pre20260131

Description

Compiler runtime library for clang, compatible with libgcc_

Added to portage

2026-02-01

libunwind - 23.0.0_pre20260131
Ebuild name:

llvm-runtimes/libunwind-23.0.0_pre20260131

Description

C++ runtime stack unwinder from LLVM

Added to portage

2026-02-01

liferea - 1.16.7
Ebuild name:

net-news/liferea-1.16.7

Description

News Aggregator for RDF/RSS/CDF/Atom/Echo feeds

Added to portage

2026-02-01

lit - 23.0.0_pre20260131
Ebuild name:

dev-python/lit-23.0.0_pre20260131

Description

A stand-alone install of the LLVM suite testing tool

Added to portage

2026-02-01

lld - 23.0.0_pre20260131
Ebuild name:

llvm-core/lld-23.0.0_pre20260131

Description

The LLVM linker (link editor)

Added to portage

2026-02-01

lldb - 23.0.0_pre20260131
Ebuild name:

llvm-core/lldb-23.0.0_pre20260131

Description

The LLVM debugger

Added to portage

2026-02-01

llvm - 23.0.0_pre20260131
Ebuild name:

dev-ml/llvm-23.0.0_pre20260131

Description

OCaml bindings for LLVM

Added to portage

2026-02-01

llvm - 23.0.0_pre20260131
Ebuild name:

llvm-core/llvm-23.0.0_pre20260131

Description

Low Level Virtual Machine

Added to portage

2026-02-01

llvm-common - 23.0.0_pre20260131
Ebuild name:

llvm-core/llvm-common-23.0.0_pre20260131

Description

Common files shared between multiple slots of LLVM

Added to portage

2026-02-01

mitmproxy-linux - 0.12.9
Ebuild name:

net-proxy/mitmproxy-linux-0.12.9

Description

mitmproxy's Rust bits

Added to portage

2026-02-01

mitmproxy-rs - 0.12.9
Ebuild name:

net-proxy/mitmproxy-rs-0.12.9

Description

mitmproxy's Rust bits

Added to portage

2026-02-01

mlir - 23.0.0_pre20260131
Ebuild name:

llvm-core/mlir-23.0.0_pre20260131

Description

Multi-Level Intermediate Representation (library only)

Added to portage

2026-02-01

numpy - 2.4.2
Ebuild name:

dev-python/numpy-2.4.2

Description

Fast array and numerical python library

Added to portage

2026-02-01

offload - 23.0.0_pre20260131
Ebuild name:

llvm-runtimes/offload-23.0.0_pre20260131

Description

OpenMP offloading support

Added to portage

2026-02-01

openmp - 23.0.0_pre20260131
Ebuild name:

llvm-runtimes/openmp-23.0.0_pre20260131

Description

OpenMP runtime library for LLVM/clang compiler

Added to portage

2026-02-01

pip - 26.0
Ebuild name:

dev-python/pip-26.0

Description

The PyPA recommended tool for installing Python packages

Added to portage

2026-02-01

polly - 23.0.0_pre20260131
Ebuild name:

llvm-core/polly-23.0.0_pre20260131

Description

Polyhedral optimizations for LLVM

Added to portage

2026-02-01

pyproject-fmt - 2.12.1
Ebuild name:

dev-python/pyproject-fmt-2.12.1

Description

Format your pyproject.toml file

Added to portage

2026-02-01

rich-click - 1.9.7
Ebuild name:

dev-python/rich-click-1.9.7

Description

Format click help output nicely with rich

Added to portage

2026-02-01

scitokens-cpp - 1.3.0
Ebuild name:

dev-cpp/scitokens-cpp-1.3.0

Description

C++ implementation of the SciTokens library with a C library interface

Added to portage

2026-02-01

stone-soup - 0.34_beta1
Ebuild name:

games-roguelike/stone-soup-0.34_beta1

Description

Role-playing roguelike game of exploration and treasure-hunti

Added to portage

2026-02-01

upmpdcli - 1.9.12
Ebuild name:

media-sound/upmpdcli-1.9.12

Description

UPnP Media Renderer front-end for MPD, the Music Player Daemon

Added to portage

2026-02-01

vivaldi-snapshot - 7.9.3936.3
Ebuild name:

www-client/vivaldi-snapshot-7.9.3936.3

Description

A browser for our friends

Added to portage

2026-02-01

wcwidth - 0.5.3
Ebuild name:

dev-python/wcwidth-0.5.3

Description

Measures number of Terminal column cells of wide-character codes

Added to portage

2026-02-01

wrapt - 2.1.0
Ebuild name:

dev-python/wrapt-2.1.0

Description

Module for decorators, wrappers and monkey patching

Added to portage

2026-02-01

yt-dlp - 2026.01.31
Ebuild name:

net-misc/yt-dlp-2026.01.31

Description

youtube-dl fork with additional features and fixes

Added to portage

2026-02-01

zenlib - 3.2.0
Ebuild name:

dev-python/zenlib-3.2.0

Description

Useful python decorators and utilities

Added to portage

2026-02-01

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