You are not logged in.

#1 2005-06-05 18:16:39

rafal
Member
From: Poland
Registered: 2005-05-18
Posts: 49

how to keep /var/abs/local/program/ clean and small in size

I've done some own packages with PKGBUILD and after that I've got a bit mess in the abs/local diractory. Why there are two copies of program source tarballs after "makepkg" (the second one in abs/local/program/src)? How to make the abs/local/ directory clean? I mean what do you do when your package is built and installed successfully? Where do you keep your own packages; together in a directory or separetely in abs/local as is?

Thanks for any hints

Offline

#2 2005-06-05 21:06:50

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: how to keep /var/abs/local/program/ clean and small in size

are you doing like this:
/var/abs/local/program_0/PKGBUILD
/var/abs/local/program_1/PKGBUILD
and so forth?

there are also a few flags you can use for makepkg, "c" for cleaning and "i" for installing, like "makepkg -ci", that's the only ones i use,


arch + gentoo + initng + python = enlisy

Offline

#3 2005-06-06 15:09:33

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: how to keep /var/abs/local/program/ clean and small in size

i always use "makepkg -cf" for clean and force (if package already exists)

Offline

#4 2005-06-13 16:34:07

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: how to keep /var/abs/local/program/ clean and small in size

I just came up with a simple solution, so if you want to make -f without the c, you can look in the src directory to see what the pkgbuild did. I put the following alias in my ~/.bashrc:

alias rmpkg='rm -r filelist src/ pkg/ *.pkg.tar.gz'

Then I just run 'rmpkg' in the PKGBUILD directory. This leaves source files, which is nice because you don't have to dl them again.  Another nice thing is if there are other files you want to remove, just add them as arguments:

rmpkg extra.file extra.file.2

Dusty

Offline

#5 2005-06-13 21:43:53

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: how to keep /var/abs/local/program/ clean and small in size

Dusty wrote:

This leaves source files, which is nice because you don't have to dl them again.

Source files are cached anyway, Dusty, in /var/cache/pacman/src.

Offline

#6 2005-06-13 21:46:36

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: how to keep /var/abs/local/program/ clean and small in size

tomk wrote:

Source files are cached anyway, Dusty, in /var/cache/pacman/src.

I know but... Often it seems to download the files again anyway. I'm not certain why; in my case, maybe its because I'm packaging java apps; I don't know if makepkg automatically caches .jar files and such.

Dusty

Offline

#7 2005-06-13 21:54:24

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: how to keep /var/abs/local/program/ clean and small in size

tomk wrote:
Dusty wrote:

This leaves source files, which is nice because you don't have to dl them again.

Source files are cached anyway, Dusty, in /var/cache/pacman/src.

that's only if you run as root *shakes finger at tomk*

if run as a user it downloads source directly to the PKGBUILD directory

Offline

#8 2005-06-13 22:02:32

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: how to keep /var/abs/local/program/ clean and small in size

Ah, thanks for making sense of that, phrakture. I wondered what I was getting.

Offline

Board footer

Powered by FluxBB