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 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 Any thoughts/input is much appreciated. Thanks yb |
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.
|
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. |
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 |
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.
|
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. |