LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-21-2006, 12:09 PM   #1
vees
Member
 
Registered: Jun 2005
Location: the Imperial Homeland
Distribution: Debian, gNewSense
Posts: 117

Rep: Reputation: 15
How do I install previously downloaded *deb packages?


Hi,

Being a Debian newbie, I am slowly trying out things but I would appreciate some pointers here. While my question is in the context of the Kanotix live-CD (which I use for self-training purposes) I think that it would equally apply to the real Debian context.

After trying out apt-get (its *awesome*) I decided to download a package first without immediately installing it.

I have downloaded an application with apt-get install -d nameofapp. I then found that the application itself and the packages which are requiered by it were all placed into some apt cache (I forgot the exact path). I then copied them all on a flash memory stick and rebooted my Kanotix live-CD.

How do I install this application? I suppose that I will need to place the application and the associated requiered packages into some subdirectory and run dpkg -i namofapp but how do I tell dpkg where the app and the requiered packages are? Do I need to run dpkg from a specific location?

Alternatively, could I give apt-get the complete pathname to the subdirectory on my flash memory stick and tell it to install if from there rather than from the usual Debian repositories?

Lastly - if somebody could point me to a good source to RTFM on apt-get and dpkg I would be most thankful!

Kind regards,

VS
 
Old 03-21-2006, 12:12 PM   #2
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
dpkg -i /path/to/nameofapp /path/to/nameofdep /path/to/nameofotherdep...
 
Old 03-21-2006, 12:16 PM   #3
vees
Member
 
Registered: Jun 2005
Location: the Imperial Homeland
Distribution: Debian, gNewSense
Posts: 117

Original Poster
Rep: Reputation: 15
thanks a lot!
 
Old 03-21-2006, 12:20 PM   #4
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
If pkgs are on flash drive. Kanotix should have made a drive icon for it on desktop then you could use dpkg -i *.deb from flash directory holding pkgs.
You can also mount the flash drive,cd to directory with debs and run same command. You can also use find to look for location of dl'd .debs, or go to /var directory and look for apt/cache to seek debs.
www.debianhelp.co.uk has apt/aptitude/dpkg tutorials and other goodies. Good luck.
 
Old 03-21-2006, 12:55 PM   #5
vees
Member
 
Registered: Jun 2005
Location: the Imperial Homeland
Distribution: Debian, gNewSense
Posts: 117

Original Poster
Rep: Reputation: 15
thanks again guys! actually, since all the packages and their dependencies were in one location all I needed to do was dpkg -i /media/sda1/apt-packages/* and it installed them with no problems.

After 5 years of Mandrake use I still cannot get used to how fantastic Debian is!!
 
  


Reply



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
successfully install deb packages without using alien pafinator11 SUSE / openSUSE 2 11-15-2005 07:58 PM
Debian install error: packages.gz not pre-downloaded resipsaloquitur Linux - Newbie 0 05-19-2004 06:24 PM
how can ý install .deb packages in mdk9.1? DaesAgelmar Mandriva 1 08-25-2003 11:26 AM
Can apt4rpm use deb repositories or install .deb packages? raylpc Linux - General 0 08-18-2003 01:49 AM
creating packages (.tgz/.deb/.rpm) How from the source packages? l_9_l Linux - General 1 03-06-2002 06:03 PM

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

All times are GMT -5. The time now is 05:04 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
Open Source Consulting | Domain Registration