aboutsummaryrefslogtreecommitdiff
blob: fb8d800075f4285f1742c81ac6877059a12ded75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Gentoo Portage Utilities

| What     | How                                                       |
| -------- | --------------------------------------------------------- |
| HOMEPAGE | https://wiki.gentoo.org/wiki/Portage-utils                |
| GIT      | git clone git://anongit.gentoo.org/proj/portage-utils.git |
| VIEWVCS  | https://gitweb.gentoo.org/proj/portage-utils.git/         |
| STATUS   | [![Build Status](https://travis-ci.org/gentoo/portage-utils.svg?branch=master)](https://travis-ci.org/gentoo/portage-utils) [![Coverity Status](https://scan.coverity.com/projects/9213/badge.svg)](https://scan.coverity.com/projects/gentoo-portage-utils) |

portage-utils is a small set of utilities for working with Portage, Gentoo
ebuilds, Gentoo ebuild overlays, installed packages (vdb), and similar sources
of information.  The focus is on size and speed, so everything is in C.

## Building

Just run `make`.  This should work on any recent Linux system.
Alternatively, run `configure` followed by `make`.

## Helping out

There's a large [TODO](./TODO.md) list with various ideas for improvements.

There's also a [HACKING](./HACKING.md) doc to help you get started.

## Examples

* find elf files linking to old openssl<br>
  `qlist -ao | scanelf -BqgN libssl.so.0.9.6 -f -`

* print a package.use<br>
  `qlist -UCq | grep ' ' > package.use`

* find orphan files not owned by any package in /lib and /usr/lib<br>
  `qfile -o {,/usr}/lib/*`
	
* get PORTDIR<br>
  `DEBUG=: ./q -Ch 2>&1 | grep ^PORTDIR | awk '{print $3}`

* Verify all packages<br>
  `qcheck -a`

## Contact

### Bugs

Please file bugs at:
	https://bugs.gentoo.org/enter_bug.cgi?product=Portage%20Development&format=guided

Use Component of "Third-Party Tools".

### Developers

* solar@gentoo.org
* vapier@gentoo.org

## Notes

### Speed is everything.

Having your PORTDIR and VDB on the right file system helps dramatically

IDE raid with PORTDIR on reiserfs:

```
$ q -r
q: Finished 20655 entries in 1.990951 seconds

IDE raid with PORTDIR on ext3:

```
$ q -r
q: Finished 20655 entries in 203.664252 seconds
```