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-27-2005, 10:24 AM   #1
Nadim
Member
 
Registered: Oct 2003
Location: Lebanon
Distribution: Slackware-DSL
Posts: 57

Rep: Reputation: 15
using Apt to install from hard disk


dudes how to let Apt install from my hard disk ?
 
Old 03-27-2005, 11:02 AM   #2
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
What to install from HD? A .deb package? Use 'dpkg -i package_name.deb' instead. Or, if you still want to use apt-get take a look here: http://www.debian.org/doc/manuals/ap...s-sources.list (section 2.2).
 
Old 04-05-2005, 03:20 AM   #3
damienduff
Member
 
Registered: Feb 2004
Distribution: Etch
Posts: 117

Rep: Reputation: 15
wat if i wana copy /var/cache/apt/archives into another debian machine?

as root
dpkg --install /folder/*.deb ?
 
Old 04-14-2005, 07:30 AM   #4
bobbens
Member
 
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Rep: Reputation: 30
Quote:
Originally posted by damienduff
wat if i wana copy /var/cache/apt/archives into another debian machine?

as root
dpkg --install /folder/*.deb ?
the way i got this working in my network is by making one a designated server (in my case, my web server). I use a SCSI drive for my apt at /mnt/apt and have a symbolic link at /var/cache/apt . Then i export the drive to my other computer with the following code in /etc/exports:
Code:
/mnt/apt     192.168.2.*(insecure,no_root_squash,sync,rw)
So then i create a /mnt/apt folder on my clients and link it to /var/cache/apt as in my server. The with the command:
Code:
mount -t nfs 192.168.2.13:/mnt/apt /mnt/apt
i can mount it on my client. So all i have to do is edit the fstab and on boot up (as long as the server is up) i can connect to it. This way if i download a new file on one computer i can get it on all, without having the same install on all (my server, has no X, only has apache and nfs basically).
There might be a better way, but i've gotten around to using this and it works pretty damn well :P.

EDIT: btw just restart nfs, mount it and do an update and you will be able to use the programs there.
The only flaw or problem with this setup is that two computers cant be updating at the same time (it locks it) and the server must be up 24/7 which isnt a problem for me.

Last edited by bobbens; 04-14-2005 at 07:31 AM.
 
  


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
Mandrakelinux 10.1 did not install MySQL during hard disk install lothario Mandriva 18 12-19-2004 08:43 PM
How to install from hard disk? enemorales Fedora 4 11-20-2004 03:51 AM
Install from hard disk? zostrianos447 Mandriva 3 12-16-2003 02:09 AM
hard disk/install snocked Linux - Newbie 1 02-09-2003 01:07 AM
install 2 linux on the same hard disk? tb-guru Linux - Software 3 04-10-2002 09:33 AM

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

All times are GMT -5. The time now is 05:31 AM.

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