You are not logged in.
... the Arch way?
2. Does pacman cache store only binaries, or sources too? I guess... only binaries
3. What happens if I download a tarball, say for ppp, do:
./configure
make
make install
Does it override the old package?
4. If not, how about if I first remove it using pacman and then compile/install from source?
5. Will I be able to upgrade this package in the future?
Thanks everyone who responded!
Last edited by presario (2008-12-07 15:56:34)
Running ArchLinux on Compaq Presario v2000
Offline
Required wiki reading:
http://wiki.archlinux.org/index.php/ABS
http://wiki.archlinux.org/index.php/Makepkg
should get you well on your way.
Offline
1. cd /var/abs/name_of_repository/pkgpath..; 'makepkg' in the directrory of the package unless you want to change something with the package in which case you edit the PKGBUILD
2. only binaries. stores them in /var/cache/pacman/pkg
3. no, but the files of the old package will obviously be overrided
4. yes..
5. yes but you'll have some files left over unless they are overwritten by the files in the new package
a "package" is really just an archive, you know, like a zip file? try opening a package in your favorite package manager and look at its contents.
KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein
Offline
You might want to look into the Arch Build System (ABS)
If you were to do those three steps you would overwrite the files the package installed, and it will cause you a whole lot of trouble!
Offline
To be more specific I just need to uncomment the line:
#CBCP=y
in ppp-2.4.4/pppd/Makefile.linux (after running ./configure) for ppp.
Because when I run:
pppd dryrun callback 0
It gives me:
Unrecognized option 'callback'
Is is possible by modifying PKGBUILD?
Running ArchLinux on Compaq Presario v2000
Offline
just run "abs" (install the abs package if you do not have it) and then:
cd /var/abs/local
cp -a /var/abs/core/ppp
cd ppp
Then edit the PKGBUILD. You will probably want the line:
sed -i "s:^#CBCP=y:CBCP=y:" pppd/Makefile.linux
then, just run makepkg. A nice new package will be built for you which you can install with "pacman -U <pkg>". You can stop it being upgraded when a new version hits the repos by adding it to IgnorePkg in /etc/pacman.conf. Use "man pacman.conf" for more info.
Offline