On Sat, Nov 27, 2010 at 10:44 AM, Narendra Sisodiya < [email protected]> wrote:
> Hey, Do you know any good option to install .deb using apt command > One way to do so it > 1) Copy all .deb files into /var/cache/apt/archives/ > and apply "apt-get install pkgname" command. As per my knowledge it will > pick deb packages from local archives. > a) is there any attribute which disable apt to go internet and force to > install form local archive folder ? > > 2) creating a local repo using those .deb files and then forcing apt-get to > disable all repos and install form a particular repo. > a) is there any attribute which disable apt to go all repo and force to > install form a perticular repo ? > > if you have lots of packages .deb that you would like to use APT to install so that the dependencies would be automatically solved. to do that create a directory and put the .debs you want to index in it. mkdir ~/debs if you are in home directory then sudo dpkg-scanpackges debs /dev/null | gzip > debs/Packages.gz this command will generate Packages.gz that contains various information about the packages which is used by APT to use this now add line to your sources.list file deb file:/home/alok debs/ now give sudo apt-get update -- Alok Singh Mahor Join the next generation of computing, Open Source, and Linux/GNU! -- l...@iitd - http://tinyurl.com/ycueutm
