You are not logged in.

#1 2011-09-02 12:26:32

endlessroad1991
Member
Registered: 2010-02-02
Posts: 28

[Solved] [Yaourt Feature Request] Store big files and reuse them

Many packages in AUR requires to download big files(~100M),
like catalyst(ati card driver), jdk(for some reasons I have to keep this),
and sometimes PKGBUILDs are updated while the big files say the same.
However, we have to download the same big files every time we (re)install the packages.

I suggest to make a folder(not under /tmp, please) to store these big files,
so we can reuse these big files, cut our network traffic, and thus save more energy :-)

Last edited by endlessroad1991 (2011-09-02 12:52:42)

Offline

#2 2011-09-02 12:42:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] [Yaourt Feature Request] Store big files and reuse them

You can create a build dir that's not in /tmp but you will have to move / copy the files by hand - and better check the checksum to make sure they're really the same.

Offline

#3 2011-09-02 12:50:32

endlessroad1991
Member
Registered: 2010-02-02
Posts: 28

Re: [Solved] [Yaourt Feature Request] Store big files and reuse them

Oh just modify /etc/yaourtrc, uncomment the TMPDIR line, and set it to anywhere except /tmp.
Sorry for bothering. This post can be closed now.

Offline

#4 2011-09-02 12:56:12

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] [Yaourt Feature Request] Store big files and reuse them

endlessroad1991 wrote:

Oh just modify /etc/yaourtrc, uncomment the TMPDIR line, and set it to anywhere except /tmp.

Yup, that's what I meant.

There's also a sort-of-related bug report for pacman https://bugs.archlinux.org/task/19476

Offline

#5 2011-09-02 13:40:04

tpfkanep
Member
From: South Africa
Registered: 2009-12-15
Posts: 121

Re: [Solved] [Yaourt Feature Request] Store big files and reuse them

Can someone please assist: is there any other change that must be made to [/etc/yaourtrc] other than uncommenting the TMPDIR line...? I have done that, but files/folders are still being cleared in the the new TMPDIR folder location. All I have left after a yaourt install is a folder [orphans] with some files in it. My new TMPDIR behaves the same like /tmp.

Offline

#6 2011-09-02 13:41:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] [Yaourt Feature Request] Store big files and reuse them

tpfkanep wrote:

Can someone please assist: is there any other change that must be made to [/etc/yaourtrc] other than uncommenting the TMPDIR line...?

You need to set it to someplace reasonable. What's your TMPDIR now?

Offline

#7 2011-09-02 13:43:09

tpfkanep
Member
From: South Africa
Registered: 2009-12-15
Posts: 121

Re: [Solved] [Yaourt Feature Request] Store big files and reuse them

in my home folder: /home/tpfkanep/tmp

edit:
got it to work by also changing the options under the BUILD section:
EXPORT=1
EXPORTDIR="/home/tpfkanep/tmp"

Is this the correct way, btw?

Last edited by tpfkanep (2011-09-02 13:53:12)

Offline

Board footer

Powered by FluxBB