Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 11-24-2004, 04:49 PM   #1
Registered: Nov 2004
Posts: 40

Rep: Reputation: 15
something about installpkg

i just wanna know how/if I could give installpkg a specific target
you know if i wanna instal it somewere how do i tell him where?

i hope you know what i mean
Old 11-24-2004, 04:51 PM   #2
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,191
Blog Entries: 4

Rep: Reputation: 464Reputation: 464Reputation: 464Reputation: 464Reputation: 464
Simply cd into the relevant directory and issue the command from there.
Old 11-24-2004, 07:11 PM   #3
Senior Member
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,247

Rep: Reputation: 47
or installpkg /home/tintilin/appname.tgz
Old 11-24-2004, 09:42 PM   #4
Registered: May 2004
Location: san francisco
Distribution: Slackware 10.2 kernel 2.6.13, Gentoo amd64, Some mish-mash of programs that started with slack 9.0
Posts: 165

Rep: Reputation: 30
If I understand your question this is what you have to do.
installpkg installs precompiled binaries into the directorys given to it during "configure". In an "offical" Slackpackage this is determined in the SlackBuild script. Usually the executibles go to /usr/bin, the library files to /usr/lib, documentation to /usr/doc, etc.
To change this, for example you want everything to go to the /usr/local tree, it needs to be specified by editing the .SlackBuild script then recompiling the source with that script.
If you want to make the package your self use a prefix flag when running configure. Such as ./configure --prefix=/usr/local, then run make, then checkinstall.
Old 11-25-2004, 01:42 AM   #5
Senior Member
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Right... Theres no way to install it somewhere else. cd into an empty folder and 'tar -xzvf blah.tgz' and you'll see where it is going to put everything. Moving stuff around to your liking and then repackaging with makepkg isn't going to work 9 times out of 10 either cause your binaries and libs are hard wired to a specific location. Grabbing the source and specifying a './configure --prefix=/someplace && make && make install DESTDIR=/EmptyFolder && cd /into/EmptyFolder && makepkg NewBlah.tgz' is the only way to go about it.....
Old 11-26-2004, 12:13 AM   #6
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,805

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
You can install to a system 'remotely' by using the install CD. Mount your desired target on /mnt, then run pkgtool. This is also the safest way to upgrade.


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
installpkg not working aje Slackware 8 11-07-2004 04:03 PM
installpkg mcd Slackware 4 10-17-2004 09:04 PM
installpkg questions salahuddin_66 Slackware 2 09-23-2004 01:26 AM
Not sure about installpkg Superdude Linux - Software 8 01-04-2004 05:30 PM
help with installpkg mep]-[isto Slackware 3 11-19-2003 02:27 PM

All times are GMT -5. The time now is 03:03 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