LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Download packages with apt but don't install them (https://www.linuxquestions.org/questions/linux-general-1/download-packages-with-apt-but-dont-install-them-790818/)

yb99 02-22-2010 12:13 PM

Download packages with apt but don't install them
 
Hi,

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:

Code:

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:

Code:

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.

Thanks
yb

rweaver 02-22-2010 12:33 PM

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.

lleb 02-22-2010 10:30 PM

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

http://www.clamav.net/download/sources/

and the database from:

http://www.clamav.net/download/cvd/

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.

yb99 02-25-2010 10:57 AM

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.

yb

lleb 02-25-2010 11:10 PM

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.

jschiwal 02-25-2010 11:15 PM

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.


All times are GMT -5. The time now is 09:27 PM.