Richard Fish wrote:
> This works, but it does seem to take a long time!
Probably because of all those dirnames and basename calls. Try:
cd /usr/portage
find . -name "*.ebuild" | sed -e 's/\.\///g' | while read ebuild; do
pkg=${ebuild%/*}
category=${pkg%/*}
pkgdir=${ebuild
On Monday 26 June 2006 10:45, Jure Varlec wrote:
> sed -r 's/-[^-]+(-r[0-9]+)*$//'
This was exactly what I was looking for. Since the following command did not
produce any relevant output I can confirm that this works for everything
currently in portage.
# cd /usr/portage && \
find . -n
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Bo Ørsted Andresen wrote:
> But I have found it impossible to make a regular expression that does break
> for at least one of those:
>
> media-fonts/font-adobe-100dpi-1.0.0
> media-fonts/font-adobe-75dpi-1.0.0
> media-fonts/font-adobe-utopia-type1-1.
On Monday 26 June 2006 08:44, Bo Ørsted Andresen wrote:
> I was of course considering something like this:
>
> # cd /var/db/pkg && ls * |
> ${some_magic_regular_expression_to_remove_version}
>
> But I have found it impossible to make a regular expression that does break
> for at least one of those:
On 6/25/06, Bo Ørsted Andresen <[EMAIL PROTECTED]> wrote:
This is probably possible with esearch too. But does anybody know of a way to
get it with portage, bash or gentoolkit?
Well, there is probably a better way to write this script, but here is
a method that will do it with bash. The idea i
I know that I can get a list of installed packages without their version
numbers with eix:
# eix -nI --format '/' | \
grep -vr '^$\|^\[[0-9]*\]\|^Found\ [0-9]*'
This is probably possible with esearch too. But does anybody know of a way to
get it with portage, bash or gentoolkit?
I was
6 matches
Mail list logo