how to install "software list" without network

Asked by dinar qurbanov

hello.

i downloaded many packages from the internet. and they are in cache folder.

i want to install ubuntu to another computer and then copy these files to its cache folder.

then i want in synaptic check this packages and install with synaptic dependent packages automatically.

as i think there is a "packages database" there in computer in which all dependencies are written. but maybe all dependencies that a package needs is in it itself. in this case ok problem solved i should not use synaptic only apt-get install or aptitude and that would be installed with dependencies. right?

then my question is: can i copy software list from my computer to that computer so that i can use synaptic on it?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
dinar qurbanov
Solved:
Last query:
Last reply:
Revision history for this message
Bhavani Shankar (bhavi) said :
#1
Revision history for this message
dinar qurbanov (qdinar) said :
#2

thank you.
it solves my problem.

but my questions still can be answered more fully and directly. i'll try aptoncd. i think it has some disadvantages. multisessions are not available with it i think so i should to deselect some packages to make a cd or wait for i'll have more packages to make a full dvd. i know i can make not full dvd. so my way is still has advantages and i still ask for how i can copy needed files manually. maybe i can learn for that from aptoncd's disk but i still should find where are needed "software list" on the computer.
and other question is whether my plan to simply copy package files to other OS's apt's cache and then use command line is correct.

Revision history for this message
Bhavani Shankar (bhavi) said :
#3

yes you can buy an ubuntu dvd and do that mate....

you can add the repositories on the DVD to the computer

https://wiki.ubuntu.com/AptMoveHowto

Also see:

http://blog.mypapit.net/2006/08/get-ubuntu-repositories-on-dvd.html

Regards

Revision history for this message
Harvey Muller (hlmuller) said :
#4

q.dinar,

I am checking to see if the information previously provided resolved your question. If so, please return to Launchpad and mark the question Solved.

Thanks!

Harvey

Revision history for this message
dinar qurbanov (qdinar) said :
#5

1. where is synaptic's database?
2. can i replace that file (synaptic's db)?
3. would apt-get and aptitude install packages with dependencies if that packages are in the cache but repositories of them are not connected (because no internet connection).

i have an idea...:
as i know i can make .iso file with aptoncd. then i can burn several small .iso files to a dvd one after one with multisession. then i should mount that image files. what i cannot do yet.

i have no "problem". but i still want answers. i do not "need" them.

Revision history for this message
Harvey Muller (hlmuller) said :
#6

q.dinar,

/root/.synaptic/log records the applications installed by synaptic. But it does not record the dependencies it installs. That's why I use aptitude.

The best way to get a list of installed packages is:

    $ dpkg --get-selections > installed-packages.log

That will give you a list of all packages installed on the system. All of the files you installed in synaptic will be in the log at /root/.synaptic. All the *.debs that were installed, including dependencies will be in /var/cache/apt/archives.

This is why I use aptitude, because it logs not only the application you installed, but the dependencies, and any recommended packages that were installed.

I usually just run this in the /var/cache/apt/archives directory:

    $ dpkg-scanpackages ./ /dev/null | gzip > Packages.gz

Then I burn all the *.debs and Packages.gz to CD-rom. Then to use the cdrom, I just add it to Software Sources. I can then update packages or add from the cdrom. It's a simple way to carry a small personal 'repository.'

Thanks!

Harvey

Revision history for this message
dinar qurbanov (qdinar) said :
#7

"Then I burn all the *.debs and Packages.gz to CD-rom."
you burn that to "/" of cd-rom? can burn in folder?

"/root/.synaptic/log records the applications installed by synaptic."
i want to know where from it gets all not installed packages list.

thank you.

Revision history for this message
Harvey Muller (hlmuller) said :
#8

q.dinar,

You can burn them all in a folder, or directly to the root of the cdrom.

Synaptics gets its information from the Packages.gz files from the repositories. It may store local copies, you'd have to search for those. I haven't. That's really the reason for creating the Packages.gz for the *.deb files. Synaptic uses that for package information.

Thanks!

Harvey