Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-06-2010, 01:08 PM   #1
Registered: Oct 2010
Posts: 121

Rep: Reputation: 1
how to use apt-get/aptitude/dpkg in ubuntu to install packages on a HDD (booting ubuntu from CD)

scenario: i am booting from ubuntu 7.10 cd and want to install slackware linux. the iso image is mounted at /mnt/dvd (located on my main HDD) and the target HDD at /mnt/hdd. what i cant figure out is which command and how to use. i read the man pages for apt-get, aptitude and dpkg and still couldnt find the solution. the guide im using tells me to use this command-line script
(link to guide:, the second post)

# for i in a ap d e f k kde l n t tcl x xap y
> do
> installpkg -root /mnt/sda3 $i/*.tgz
> done

(mnt/sda3 is /mnt/hdd in my case)
but it seems installpkg does not exist in ubuntu and i do not know how to replace it with one of the aforementioned commands.

Last edited by gujedan; 10-06-2010 at 01:36 PM.
Old 10-07-2010, 06:02 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Here's a guide on how to update APT to find files locally (on the hard drive). Scroll down to section 2.2 for instructions on how to tell dpkg where the files are on the hdd.


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
apt/dpkg List of all installed packages jmoschetti45 Linux - Software 2 02-12-2010 04:20 PM
apt aptitude commands not working - how to install packages w/ damn small linux? lenou Linux - Newbie 3 01-23-2010 09:00 AM
dpkg/apt-get/aptitude broke after I fixed corrupted filesystem kevinbenko Debian 4 10-08-2008 09:20 PM
Debian 4 Stable - dpkg/apt-get/aptitude - Database reading issue? Brian Ryans Debian 1 05-18-2007 04:09 AM
What is the difference between dpkg and aptitude/apt-get? Akhran Debian 13 03-13-2006 11:33 PM > Forums > Linux Forums > Linux - Newbie

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