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:

68954

userrating:

average rating: 1.2 (8 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


rate this article:
current rating: average rating: 1.1 (78 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)

back



Support us on Content Nation

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2024-09-17
azure-vm-utils - 0.3.0
Ebuild name:

sys-apps/azure-vm-utils-0.3.0

Description

Utilities and udev rules to support Linux on Azure

Added to portage

2024-09-17

dafny - 4.8.1
Ebuild name:

dev-lang/dafny-4.8.1

Description

Dafny is a verification-aware programming language

Added to portage

2024-09-17

eisl - 5.31
Ebuild name:

dev-lang/eisl-5.31

Description

Interpreter and compiler compatible with the ISLisp standard

Added to portage

2024-09-17

fuzion - 0.090
Ebuild name:

dev-lang/fuzion-0.090

Description

A language with a focus on simplicity, safety and correctness

Added to portage

2024-09-17

go - 1.22.7
Ebuild name:

dev-lang/go-1.22.7

Description

A concurrent garbage collected and typesafe programming language

Added to portage

2024-09-17

go - 1.23.1
Ebuild name:

dev-lang/go-1.23.1

Description

A concurrent garbage collected and typesafe programming language

Added to portage

2024-09-17

inetd - 1
Ebuild name:

virtual/inetd-1

Description

Virtual for the internet super-server daemon

Added to portage

2024-09-17

inetutils - 2.5-r2
Ebuild name:

net-misc/inetutils-2.5-r2

Description

Collection of common network programs

Added to portage

2024-09-17

netkit-base - 0.17-r10
Ebuild name:

sys-apps/netkit-base-0.17-r10

Description

Old-style inetd

Added to portage

2024-09-17

odamex - 10.6.0
Ebuild name:

games-engines/odamex-10.6.0

Description

Online multiplayer free software engine for DOOM

Added to portage

2024-09-17

protontricks - 1.12.0
Ebuild name:

app-emulation/protontricks-1.12.0

Description

app-emulation/winetricks wrapper for Proton (Steam Play) games

Added to portage

2024-09-17

2024-09-16
caffe2 - 2.4.1
Ebuild name:

sci-libs/caffe2-2.4.1

Description

A deep learning framework

Added to portage

2024-09-16

ensurepip-setuptools - 74.1.3
Ebuild name:

dev-python/ensurepip-setuptools-74.1.3

Description

Shared setuptools wheel for ensurepip Python module

Added to portage

2024-09-16

ensurepip-setuptools - 75.0.0
Ebuild name:

dev-python/ensurepip-setuptools-75.0.0

Description

Shared setuptools wheel for ensurepip Python module

Added to portage

2024-09-16

gentoo-sources - 6.11.0
Ebuild name:

sys-kernel/gentoo-sources-6.11.0

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2024-09-16

gpxsee - 13.24
Ebuild name:

sci-geosciences/gpxsee-13.24

Description

A viewer and analyzer that supports gpx, tcx, kml, fit, igc and nmea f

Added to portage

2024-09-16

idna - 3.10
Ebuild name:

dev-python/idna-3.10

Description

Internationalized Domain Names in Applications (IDNA)

Added to portage

2024-09-16

jdbc-mysql - 9.0.0
Ebuild name:

dev-java/jdbc-mysql-9.0.0

Description

JDBC Type 4 driver for MySQL

Added to portage

2024-09-16

libnice - 0.1.19-r1
Ebuild name:

net-libs/libnice-0.1.19-r1

Description

An implementation of the Interactice Connectivity Establishment standard

Added to portage

2024-09-16

lidarr-bin - 2.6.0.4348
Ebuild name:

www-apps/lidarr-bin-2.6.0.4348

Description

Looks and smells like Sonarr but made for music

Added to portage

2024-09-16

mgorny-dev-scripts - 55
Ebuild name:

app-portage/mgorny-dev-scripts-55

Description

Handy scripts for ebuild development and more

Added to portage

2024-09-16

musescore - 4.4.2
Ebuild name:

media-sound/musescore-4.4.2

Description

WYSIWYG Music Score Typesetter

Added to portage

2024-09-16

nanobind - 2.1.0
Ebuild name:

dev-python/nanobind-2.1.0

Description

Tiny and efficient C++/Python bindings

Added to portage

2024-09-16

nzbget - 24.3
Ebuild name:

net-nntp/nzbget-24.3

Description

A command-line based binary newsgrabber supporting .nzb files

Added to portage

2024-09-16

orderly-set - 5.2.3
Ebuild name:

dev-python/orderly-set-5.2.3

Description

A package containing multiple implementations of Ordered Set

Added to portage

2024-09-16

paramiko - 3.5.0
Ebuild name:

dev-python/paramiko-3.5.0

Description

SSH2 protocol library

Added to portage

2024-09-16

plymouth-openrc-plugin - 0.3.0-r1
Ebuild name:

sys-boot/plymouth-openrc-plugin-0.3.0-r1

Description

Plymouth plugin for OpenRC

Added to portage

2024-09-16

protobuf-java - 4.28.1
Ebuild name:

dev-java/protobuf-java-4.28.1

Description

Core Protocol Buffers library

Added to portage

2024-09-16

prowlarr-bin - 1.24.1.4740
Ebuild name:

www-apps/prowlarr-bin-1.24.1.4740

Description

An indexer manager/proxy to integrate with your various PVR apps

Added to portage

2024-09-16

psycopg - 3.2.2
Ebuild name:

dev-python/psycopg-3.2.2

Description

PostgreSQL database adapter for Python

Added to portage

2024-09-16

pypiserver - 2.2.0
Ebuild name:

dev-python/pypiserver-2.2.0

Description

Minimal PyPI server

Added to portage

2024-09-16

pysol-cards - 0.18.0
Ebuild name:

dev-python/pysol-cards-0.18.0

Description

Deal PySol FreeCell cards

Added to portage

2024-09-16

pysubs2 - 1.7.3
Ebuild name:

dev-python/pysubs2-1.7.3

Description

Python library for editing subtitle files

Added to portage

2024-09-16

pytorch - 2.4.1
Ebuild name:

sci-libs/pytorch-2.4.1

Description

Tensors and Dynamic neural networks in Python

Added to portage

2024-09-16

radarr-bin - 5.10.3.9178
Ebuild name:

www-apps/radarr-bin-5.10.3.9178

Description

A fork of Sonarr to work with movies a la Couchpotato

Added to portage

2024-09-16

setuptools - 74.1.3
Ebuild name:

dev-python/setuptools-74.1.3

Description

Collection of extensions to Distutils

Added to portage

2024-09-16

setuptools - 75.0.0
Ebuild name:

dev-python/setuptools-75.0.0

Description

Collection of extensions to Distutils

Added to portage

2024-09-16

sleef - 3.6.1-r2
Ebuild name:

dev-libs/sleef-3.6.1-r2

Description

Implements vectorized versions of C standard math functions

Added to portage

2024-09-16

sonarr-bin - 4.0.9.2386
Ebuild name:

www-apps/sonarr-bin-4.0.9.2386

Description

Sonarr is a Smart PVR for newsgroup and bittorrent users

Added to portage

2024-09-16

vanilla-sources - 6.11.0
Ebuild name:

sys-kernel/vanilla-sources-6.11.0

Description

Full sources for the Linux kernel

Added to portage

2024-09-16

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2020 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 39.6 ms