Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-22-2010, 12:13 PM   #1
LQ Newbie
Registered: Feb 2010
Posts: 7

Rep: Reputation: 1
Question Download packages with apt but don't install them


I'm running a Knoppix Live CD, and I want to install ClamAV. What I'd really like is to download all the relevant packages and save them onto a USB pen, and then I can install it easily whenever I run the Live CD anywhere and update the definitions at my leisure without having to connect to the internet or go through remodelling Knoppix.

I'm not entirely sure how to do this though, mainly because of dependencies. I would think it would be along the lines of cd'ing to the usb and running:

apt-get -d build-dep clamav-base

apt-get -d build-dep clamav

and then to install use dpkg, but I'm not sure how to get it to look for the dependencies in the same place:

dpkg -i clamav-base

dpkg -i clamav
I'm just about to go and try it, but I thought I'd ask first to get the wisdom , but also to see if anyone else does something similar and whether they think this is a good way to achieve the goal, regardless of whether this technically works.

Any thoughts/input is much appreciated.

Old 02-22-2010, 12:33 PM   #2
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
You would use the -d option of apt-get, it means download only. So you're on the right track, but to ensure it's going to work the way you expect you're going to have to test it.
Old 02-22-2010, 10:30 PM   #3
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,729

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
not sure why its doing that, but id just grab the source from:

and the database from:

and follow their instructions for installing. i always had a hard time getting clam to work properly on .deb systems from apt-get, but from source it always worked right and worked the first time. just a thought as you want to put them on a USB drive anyways.
Old 02-25-2010, 10:57 AM   #4
LQ Newbie
Registered: Feb 2010
Posts: 7

Original Poster
Rep: Reputation: 1
It worked quite well, but getting the source was a better idea. In the end I installed Knoppix on a USB pen and used the persistent disk image to keep it installed. That works a treat! (once you've got it to work)

Thanks for all the help.

Old 02-25-2010, 11:10 PM   #5
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,729

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
glad the idea to run from source worked for you. for me that has been the easiest way to get both clamAV and f-prot up and running on all linux systems fast and easy in both cases. great HOWTO's on their web pages too.
Old 02-25-2010, 11:15 PM   #6
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
I did about the same thing when I used ndiswrapper on my old laptop. It was old and the NIC interface went out. Keeping the ndiswrapper source package meant I could reinstall a new ndiswrapper kernel module (after a kernel update) without needing to connect to the net or downloading from another machine.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Apt-Cacher-NG - HTTP download proxy for software packages LXer Syndicated Linux News 0 02-24-2009 11:50 PM
install all available packages with apt-get thinkpadx30 Debian 7 08-27-2006 06:02 AM
apt-get trying to download wrong packages. Why? *Dark Dragon* Linux - Software 4 04-29-2005 02:01 PM
Making apt-get download unstable packages sduffy89 Debian 4 08-28-2004 01:01 PM
apt-get to download packages... mahamkali Linux - Software 3 12-11-2003 10:25 AM > Forums > Linux Forums > Linux - General

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