LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-11-2008, 03:22 AM   #1
dark*
Member
 
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42

Rep: Reputation: 15
Question "Install into a directory" option in slackware


Hi,
I want to make an slackware 12.0 installed OS image. In suse 10.x they have option in yast as "install into directory" which installs suse into the mentioned directory. Is there any option like that in slack, or rather how to do the same in slack?

I am doing this to run it under Xen.

Thanks.
 
Old 06-11-2008, 03:54 AM   #2
mcnalu
Member
 
Registered: Dec 2006
Location: Glasgow, UK
Distribution: Slackware 13.37 and 13.1
Posts: 398

Rep: Reputation: 64
Code:
installpkg -root /some/dir somepackage.tgz
Warning: it doesn't work if the option goes after the package.

If using pkgtool you can use the -target_dir option.

Either way, make sure to read the man page carefully.
 
Old 06-11-2008, 04:02 AM   #3
dark*
Member
 
Registered: Jan 2006
Distribution: slackware 12.0
Posts: 42

Original Poster
Rep: Reputation: 15
I want the whole slackware distribution installed in a directory, with all directories (etc, bin, usr, lib, etc) and everything in it. Does it do that?
 
Old 06-11-2008, 04:07 AM   #4
gutnix
LQ Newbie
 
Registered: May 2008
Posts: 6

Rep: Reputation: 0
If you have an already installed slackware system, you can. pkgtool has options for that - take a look at the manpage. You should have the packages lying around somewhere (a local mirror could be handy for that). And if you write your own tagfile, you need not answer questions about packages marked optional.

Best regards
 
Old 06-11-2008, 04:09 AM   #5
gutnix
LQ Newbie
 
Registered: May 2008
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by dark* View Post
I want the whole slackware distribution installed in a directory, with all directories (etc, bin, usr, lib, etc) and everything in it. Does it do that?
Oops, I'm way too slow, way too slow ...

The directory structure is in package aaa_base.
 
Old 06-12-2008, 01:46 AM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,856

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
In order to do this properly, you need to create a formatted partition image. Then use losetup to associate it with a loopback device and mount in for installation.
 
Old 06-13-2008, 01:55 AM   #7
gutnix
LQ Newbie
 
Registered: May 2008
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by gnashley View Post
In order to do this properly, you need to create a formatted partition image. Then use losetup to associate it with a loopback device and mount in for installation.
If you want to run it with Xen or KVM, you're right. But for a vserver or a chroot environment it works the same with a directory.

Bg
 
Old 06-13-2008, 11:34 PM   #8
Mig21
Member
 
Registered: Jan 2005
Posts: 218

Rep: Reputation: 33
Dark, just out of curiosity, why would you want to install into a certain directory?
 
  


Reply


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
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
"expert" install option for slackware-current? somae Slackware 1 06-30-2007 01:52 AM
"Shutdown" and "Restart" option missing after upgrade hansalfredche Mandriva 8 11-02-2006 07:23 AM
Getting the installer program to offer "Install from HD" option. phillipsbp Red Hat 1 02-13-2004 03:14 PM
anging "Protocol" option to "IMPS/2" in XF86Config-4 causes problems zstingx Linux - General 2 10-27-2003 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

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