Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 12-22-2009, 09:44 AM   #1
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
Question about makepkg and installpkg

Hi ppl,

I am in the process of making pkgs of some big stuff ( Salome-Platform, Intel Compilers... ) and I kind of know the drill , cd into the top of dir tree, makepkg --links y --chown n /where/i/want/my/pkg/to/Go.tgz.

When Installing, installpkg --root=/where/I/want/this/to/be/untared myPkg.tgz

So far so good... my question is, Should I installpkg --root=/a/different/prefix/from/the/original pkg_created_with_makepkg.tgz, when I run the will the symlinks be properly restored despite the fact that prefix has changed...?

Is there a way of runing when instalpkg'ing something, is this the default behaviour, or one has to specify this with a sort of flag in command line...?



"Once Upon a time, in the far Mountains of Japan, there was a littl developer, whose first Distro was called "The Amazing Aardvark", the contemporary release is called "The krazy Koala"..." does this sound familiar...?

One of these days I may start writing a book... in Kanji ( for Human beings... )

Last edited by Alexvader; 12-22-2009 at 10:18 AM.
Old 12-22-2009, 10:06 AM   #2
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,856

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
ANy contained on the package will be automatically run when the package is installed. It will be run in the ROOT, if you supply that (using 'installpkg -root path ...' or 'ROOT=path installpkg ...'

The ROOT functionality is not for changing the prefix, though. It's just meant to let you install in another loaction other than /, as if it were the root. For example, you can do a new installation to another partition by mounting it -say on /tmp/newroot. Then: 'installpkg -root /tmp/newroot *.tgz' will install the package there as if it were '/'
1 members found this post helpful.
Old 12-22-2009, 10:18 AM   #3
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi Gnashley





Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about installpkg jmdlcar Slackware 7 09-03-2007 10:33 AM
Makepkg Question Eklipz Slackware 5 11-12-2004 02:25 PM
installpkg question JROCK1980 Slackware 5 11-13-2003 09:02 PM
Package for 'installpkg,removepkg,makepkg," bongski55 Slackware 4 09-15-2003 07:00 AM
Installpkg question BittaBrotha Slackware 3 05-28-2003 12:57 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration