I installed a package using apt-get install package-name the package works perfectly fine.. Now is there anyway i can get all the packages dependencies and the package itself inside a single directory which i can write to install the package at a place where an internet connection is not available.
thanks,
-- Puneet
On Mon, Mar 20, 2006 at 04:28:10AM +0530, Puneet Lakhina wrote:
I installed a package using apt-get install package-name the package works perfectly fine.. Now is there anyway i can get all the packages dependencies and the package itself inside a single directory which i can write to install the package at a place where an internet connection is not available.
Grab the deb files for the package. Find out its dependencies using synaptic menus or your favorite command-line tool (that means, I don't know how but I'm sure it's possible). Grab the dependency debs as well.
Grab = find them on the debian web site.
I don't know what the single directory requirement is for, but I won't ask as that results in people jumping down my throat.
On Mon, Mar 20, 2006 at 04:28:10AM +0530, Puneet Lakhina wrote:
the package works perfectly fine.. Now is there anyway i can get all the packages dependencies and the package itself inside a single directory which i can write to install the package at a place where an internet connection is not available.
If you haven't used the 'apt-get clean' command, the packages will still be available in the '/var/cache/apt/archives' directory.
Ofcourse, you will still need to know the dependancies. You can find a list of dependancies for a package using 'apt-cache depednds <packagename>'. Check out the manpage of apt-cache for more.
Ofcourse, if you haven't downloaded installed the package (and its deps) yet then you can simply do an 'apt-get clean' to remove the cache of all previous packages and the do an 'apt-get install <package> -d'. The -d switch will only download the package files. Then you may find the files in the directory named above.
Siddhesh
On Monday 20 March 2006 4:28 am, Puneet Lakhina wrote:
I installed a package using apt-get install package-name the package works perfectly fine.. Now is there anyway i can get all the packages dependencies and the package itself inside a single directory which i can write to install the package at a place where an internet connection is not available.
cd /var/cache/apt dpkg-scanpackages archives/ /cdrom/ >Packages tar -zcvf Packages.gz Packages
create an iso of archives and burn to cd. On the target machine. apt-cdrom add apt-get install <packagename>
No need to download stuff more than once.