2
- Update all world packages with dependencies and packages with chnged use flags:
3
emerge --update --deep --with-bdeps=y --newuse @world
5
emerge -u -1 -O perl dev-perl/extutils-pkgconfig $(eix '-I#' virtual/perl-*)
6
emerge -u -1 perl $(eix '-I#' virtual/perl-*)
8
- Clean orphaned packages, ask for confirmation
10
- Just add the package to the world file, keeping currently installed version
11
emerge -n package_to_add_to_world
14
Sort installed packages by size:
15
equery s | sort -t "," -k 3.7 -n list.txt
17
Information on installed packages (when, compilation time, ...)
18
genlop openoffice - List of versions and dates of installs
19
genlop -t openoffice - List compilation times
21
Accelerating portage searches
22
update-eix - Updating current cache
23
eix -s xmms - searching package
27
emerge --depclean --pretend [atom] - package/s are not needed
28
--verbose - information on dependants
30
List by modification date:
31
find /var/db/pkg/ -mindepth 2 -maxdepth 2 -printf "%C@ %Cc %P\n" | sort | cut -d ' ' -f 2-
32
List of all (with reverse dependencies) pakcages in world set
33
((eix --system -n 2> /dev/null; eix --world-all -n 2>/dev/null) | grep "^\[[^[:digit:]]" | cut -d " " -f 2
34
List of installed packages which are not in system and world sets
35
((eix --system -n 2> /dev/null; eix --world-all -n 2>/dev/null) | grep "^\[[^[:digit:]]" | cut -d " " -f 2; eix -I -n 2>/dev/null | grep "^\[[^[:digit:]]" | cut -d " " -f 2) | sort | uniq -u
38
Get all files from installed package
39
for name in `equery f glibc`; do if [ -f $name ]; then dir="./`dirname $name`"; mkdir -p $dir; (cd $dir; cp -a $name .); fi; done
41
Converting MDK patches
42
sed -e 's/.*:[[:space:]]\+\(.*\)/\tepatch ${FILESDIR}\/99_all_\1 || die/'
47
- Access denieds sometimes are ariving because of old sandbox installed. If
48
installation of newer sandbox failed as well with permission denied, use
50
FEATURES="-sandbox" emerge sandbox
52
- Disable testing and also prevent some problems with cycle dependencies
53
caused by test USE flag: FEATURES="-test"
55
- Prevent slot conflicts caused by libraries listed in the world, i.e.
56
"no parents that aren't satisfied by other packages in this slot":
57
Use "-u" flag: emerge -u gnome
58
* In more complicated case the update of complete subsystems may
59
be required. Example for perl
60
emerge -u -1 perl rpm `equery l -F '$category/$name' "perl-core/*" "dev-perl/*" "virtual/perl*"`
62
- Ignore file collisions:
63
COLLISION_IGNORE="/" emerge ...
b'\\ No newline at end of file'