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