You are not logged in.

#1 2009-12-08 01:07:18

Horris
Member
Registered: 2009-04-05
Posts: 30

Rebuild a package [SOLVED]

What (or How to ) is rebuild a package?

Is force reinstall?

pacman -Sf myPackage

or install from cache

pacman -U /var/cache/pacman/pkg/myPackage.pkg.tar.gz

or another thing?

Last edited by Horris (2009-12-08 13:02:37)

Offline

#2 2009-12-08 01:10:05

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Rebuild a package [SOLVED]

ABS?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2009-12-08 01:19:19

Horris
Member
Registered: 2009-04-05
Posts: 30

Re: Rebuild a package [SOLVED]

No precisely, ABS is for install packages from source.

I have this situation:
New version of Kernel26 if I can't wait a new version of nvidia I have to "rebuild" nvidia. How do this?

Offline

#4 2009-12-08 01:28:14

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: Rebuild a package [SOLVED]

Horris wrote:

New version of Kernel26 if I can't wait a new version of nvidia I have to "rebuild" nvidia. How do this?

Can you clarify this sentence? I'm a little confused on what exactly you're trying to do, by saying both a new version of Kernel26 and building nvidia.  But ABS still seems like what you're looking for. While it's commonly used to build from source, it can also rebuild packages for something like the nvidia which is distributed as a binary.

Offline

#5 2009-12-08 01:48:50

Horris
Member
Registered: 2009-04-05
Posts: 30

Re: Rebuild a package [SOLVED]

from http://wiki.archlinux.org/index.php/Pacman

"For example, if kernel26 is to be updated to a new minor version, the cautious user immediately recognizes that packages that include kernel modules (such as catalyst and virtualbox-modules) must be updated/rebuilt as well"...

How rebuilt a package?

Offline

#6 2009-12-08 02:00:29

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: Rebuild a package [SOLVED]

ABS for packages in the repos.  If it is a package from the AUR, do exactly what you did to build it in the first place.

Online

#7 2009-12-08 02:05:02

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Rebuild a package [SOLVED]

Horris wrote:

No precisely, ABS is for install packages from source.

No it's not. It's for rebuilding packages. Gentoo installs packages from source; Arch installs binaries.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#8 2009-12-08 02:05:40

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: Rebuild a package [SOLVED]

Horris wrote:

from http://wiki.archlinux.org/index.php/Pacman

"For example, if kernel26 is to be updated to a new minor version, the cautious user immediately recognizes that packages that include kernel modules (such as catalyst and virtualbox-modules) must be updated/rebuilt as well"...

How rebuilt a package?

You can use abs to get the PKGBUILD file for nvidia. There's a line that says

_kernver='2.6.31-ARCH'

You want to change that to match the kernel you're using. Than just use makepkg to build the package. Just to be clear you only need to do this if you're building your own kernel that changes the version number. If you're using the packages from the repos nvidia will get rebuilt and put in the repos at the same time as a new kernel.

Offline

#9 2009-12-08 02:15:09

Horris
Member
Registered: 2009-04-05
Posts: 30

Re: Rebuild a package [SOLVED]

B wrote:

No it's not. It's for rebuilding packages. Gentoo installs packages from source; Arch installs binaries.

Yes, that's right. ABS (and tools) generates a pkg.tar.gz installable with pacman.

Thank's guys for the explanation.

Last edited by Horris (2009-12-08 02:15:38)

Offline

Board footer

Powered by FluxBB