/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Administration/Platforms/portage/gentoo.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2015-08-21 03:52:00 UTC
  • Revision ID: csa@suren.me-20150821035200-xu1zh22cqlk2omcq
Profiling

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Maitaining the system:
 
2
    - Update all world packages with dependencies and packages with chnged use flags:
 
3
        emerge  --update --deep --with-bdeps=y --newuse @world
 
4
    - Update perl
 
5
         emerge -u -1 -O perl dev-perl/extutils-pkgconfig $(eix '-I#' virtual/perl-*)
 
6
         emerge -u -1 perl $(eix '-I#' virtual/perl-*)
 
7
         perl-cleaner --all
 
8
    - Clean orphaned packages, ask for confirmation
 
9
        emerge --depclean -a
 
10
    - Just add the package to the world file, keeping currently installed version
 
11
        emerge -n package_to_add_to_world
 
12
 
 
13
 
 
14
Sort installed packages by size:
 
15
    equery s | sort -t "," -k 3.7 -n list.txt
 
16
 
 
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
 
20
     
 
21
Accelerating portage searches
 
22
    update-eix                  - Updating current cache
 
23
    eix -s xmms                 - searching package
 
24
    
 
25
    
 
26
Dependencies
 
27
    emerge --depclean --pretend [atom]          - package/s are not needed
 
28
        --verbose                               - information on dependants
 
29
        
 
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
 
36
 
 
37
 
 
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
 
40
 
 
41
Converting MDK patches
 
42
    sed -e 's/.*:[[:space:]]\+\(.*\)/\tepatch ${FILESDIR}\/99_all_\1 || die/'
 
43
 
 
44
 
 
45
Problems
 
46
========
 
47
    - Access denieds sometimes are ariving because of old sandbox installed. If
 
48
    installation of newer sandbox failed as well with permission denied, use
 
49
    following syntax: 
 
50
        FEATURES="-sandbox" emerge sandbox
 
51
 
 
52
    - Disable testing and also prevent some problems with cycle dependencies 
 
53
    caused by test USE flag: FEATURES="-test"
 
54
    
 
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*"`
 
61
 
 
62
    - Ignore file collisions:
 
63
        COLLISION_IGNORE="/" emerge ...
 
64
        
 
 
b'\\ No newline at end of file'