* [gentoo-user] Portage: Show list of required files without downloading anything?
@ 2006-10-08 19:35 Statux
2006-10-08 19:59 ` Jan-Hendrik Zab
2006-10-08 20:08 ` Bo Ørsted Andresen
0 siblings, 2 replies; 5+ messages in thread
From: Statux @ 2006-10-08 19:35 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1139 bytes --]
My mother has a computer which still accesses the internet via a dialup
connection. When I do upgrades on her system, I typically grab a portage
snapshot from my system, drive up to her house 12 miles away, install
it, check to see which packages need upgrading, then somehow figure out
(never exactly) which files she actually needs so I can get them, again,
from my system, drive those files back up to her house and compile stuff
hoping I didn't miss anything too sizable.
Question: Is there a way that I can get Portage to run through the
packages/ebuilds and, instead of downloading anything from the net, just
have it show me which files were not in /usr/portage/distfiles which
will be needed?
So if I had 8 packages which needed upgrading, which would result in (an
estimated) 6,382K of downloads, is there some way for me to have it go
through each one of those all at once, similar to --fetchonly, and have
it spit out a list of everything which it did not find on the local
system?
It seems to be simple enough and a useful feature on some level but I
haven't found the answer.
Thoughts?
-Statux
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 191 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Portage: Show list of required files without downloading anything?
2006-10-08 19:35 [gentoo-user] Portage: Show list of required files without downloading anything? Statux
@ 2006-10-08 19:59 ` Jan-Hendrik Zab
2006-10-08 20:19 ` Boris Fersing
2006-10-08 20:08 ` Bo Ørsted Andresen
1 sibling, 1 reply; 5+ messages in thread
From: Jan-Hendrik Zab @ 2006-10-08 19:59 UTC (permalink / raw
To: gentoo-user
On Sun, 08 Oct 2006 15:35:49 -0400
Statux <statux@optonline.net> wrote:
> Question: Is there a way that I can get Portage to run through the
> packages/ebuilds and, instead of downloading anything from the net, just
> have it show me which files were not in /usr/portage/distfiles which
> will be needed?
>
> So if I had 8 packages which needed upgrading, which would result in (an
> estimated) 6,382K of downloads, is there some way for me to have it go
> through each one of those all at once, similar to --fetchonly, and have
> it spit out a list of everything which it did not find on the local
> system?
Dunno about any script, but first step would be:
emerge -uD -fp world
Then just filter it, e.g. in every line cut everything after the first
white space and throw the meat to wget.
Jan-Hendrik Zab
--
| Jan-Hendrik Zab
| +49 (0)1773392888
| http://www.v3ng34nce.org
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Portage: Show list of required files without downloading anything?
2006-10-08 19:35 [gentoo-user] Portage: Show list of required files without downloading anything? Statux
2006-10-08 19:59 ` Jan-Hendrik Zab
@ 2006-10-08 20:08 ` Bo Ørsted Andresen
2006-10-09 9:12 ` Neil Bothwick
1 sibling, 1 reply; 5+ messages in thread
From: Bo Ørsted Andresen @ 2006-10-08 20:08 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1249 bytes --]
On Sunday 08 October 2006 21:35, Statux wrote:
[SNIP]
> Question: Is there a way that I can get Portage to run through the
> packages/ebuilds and, instead of downloading anything from the net, just
> have it show me which files were not in /usr/portage/distfiles which
> will be needed?
>
> So if I had 8 packages which needed upgrading, which would result in (an
> estimated) 6,382K of downloads, is there some way for me to have it go
> through each one of those all at once, similar to --fetchonly, and have
> it spit out a list of everything which it did not find on the local
> system?
>
> It seems to be simple enough and a useful feature on some level but I
> haven't found the answer.
Something like:
# export DISTDIR=$(emerge --info | sed -n 's/^DISTDIR="\(.*\)"$/\1/p')
# emerge --fetchonly --pretend --quiet -u world | \
grep -v "^$" | \
while read SRC_URI; do \
filename=`basename "${SRC_URI}"`; \
[ ! -f "${DISTDIR}/${filename}" ] && \
echo "${SRC_URI}"; \
done
> Thoughts?
You might also consider creating a binhost on your network and bringing binary
packages instead of sources to her computer...
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Portage: Show list of required files without downloading anything?
2006-10-08 19:59 ` Jan-Hendrik Zab
@ 2006-10-08 20:19 ` Boris Fersing
0 siblings, 0 replies; 5+ messages in thread
From: Boris Fersing @ 2006-10-08 20:19 UTC (permalink / raw
To: gentoo-user
2006/10/8, Jan-Hendrik Zab <xaero@gmx.de>:
> On Sun, 08 Oct 2006 15:35:49 -0400
> Statux <statux@optonline.net> wrote:
>
> > Question: Is there a way that I can get Portage to run through the
> > packages/ebuilds and, instead of downloading anything from the net, just
> > have it show me which files were not in /usr/portage/distfiles which
> > will be needed?
> >
> > So if I had 8 packages which needed upgrading, which would result in (an
> > estimated) 6,382K of downloads, is there some way for me to have it go
> > through each one of those all at once, similar to --fetchonly, and have
> > it spit out a list of everything which it did not find on the local
> > system?
>
> Dunno about any script, but first step would be:
>
> emerge -uD -fp world
>
> Then just filter it, e.g. in every line cut everything after the first
> white space and throw the meat to wget.
Hi,
I would do something like this :
- "emerge aria2" on your box (nice wget replacement which can download
from more hosts/protocols at the same time).
- run this command on your mother's box :
for url in $(emerge -fpuvDN world|grep -v "These are the packages that
would be fetched, in order:"|grep -v "Calculating") ; do echo ; echo
aria2c $url ;done > packages.sh
- copy the packages.sh on your box
- run ". packages.sh" on your box. This will download all the
required pakages in the current directory.
regards,
Boris.
>
> Jan-Hendrik Zab
>
> --
> | Jan-Hendrik Zab
> | +49 (0)1773392888
> | http://www.v3ng34nce.org
>
> --
> gentoo-user@gentoo.org mailing list
>
>
--
Quiconque me parle de Dieu en veut à ma bourse ou à ma liberté.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Portage: Show list of required files without downloading anything?
2006-10-08 20:08 ` Bo Ørsted Andresen
@ 2006-10-09 9:12 ` Neil Bothwick
0 siblings, 0 replies; 5+ messages in thread
From: Neil Bothwick @ 2006-10-09 9:12 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 373 bytes --]
On Sun, 8 Oct 2006 22:08:29 +0200, Bo Ørsted Andresen wrote:
> # export DISTDIR=$(emerge --info | sed -n 's/^DISTDIR="\(.*\)"$/\1/p')
DISTDIR=$(portageq distdir)
looks less like line noise and it harder to mis-type :)
--
Neil Bothwick
I do not like this dumb machine
I really ought to sell it.
It never does just what I want
But only what I tell it.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-10-09 9:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-08 19:35 [gentoo-user] Portage: Show list of required files without downloading anything? Statux
2006-10-08 19:59 ` Jan-Hendrik Zab
2006-10-08 20:19 ` Boris Fersing
2006-10-08 20:08 ` Bo Ørsted Andresen
2006-10-09 9:12 ` Neil Bothwick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox