/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/Linux/packages/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
 
    - Clean orphaned packages, ask for confirmation
5
 
        emerge --depclean -a
6
 
    - Just add the package to the world file, keeping currently installed version
7
 
        emerge -n package_to_add_to_world
8
 
 
9
 
Sort installed packages by size:
10
 
    equery s | sort -t "," -k 3.7 -n list.txt
11
 
 
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
15
 
     
16
 
Accelerating portage searches
17
 
    update-eix                  - Updating current cache
18
 
    eix -s xmms                 - searching package
19
 
    
20
 
    
21
 
Dependencies
22
 
    emerge --depclean --pretend [atom]          - package/s are not needed
23
 
        --verbose                               - information on dependants
24
 
        
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
31
 
 
32
 
 
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
35
 
 
36
 
Converting MDK patches
37
 
    sed -e 's/.*:[[:space:]]\+\(.*\)/\tepatch ${FILESDIR}\/99_all_\1 || die/'
38
 
 
39
 
 
40
 
Problems
41
 
========
42
 
    - Access denieds sometimes are ariving because of old sandbox installed. If
43
 
    installation of newer sandbox failed as well with permission denied, use
44
 
    following syntax: 
45
 
        FEATURES="-sandbox" emerge sandbox
46
 
 
47
 
    - Disable testing and also prevent some problems with cycle dependencies 
48
 
    caused by test USE flag: FEATURES="-test"
49
 
    
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*"`
56
 
 
57
 
    - Ignore file collisions:
58
 
        COLLISION_IGNORE="/" emerge ...
59
 
        
 
 
b'\\ No newline at end of file'