Answer the question
In order to leave comments, you need to log in
How to update packages locally on ubuntu 10.4?
The bottom line is, there are 2 servers under ubuntu 10.4:
server 1 has Internet access,
server 2 does not have access, respectively.
Task: install on server 2 the packages we need, which were already installed on server 1.
It is known that all installed packages on server 1 are stored in the /var/cache/apt/archives/
folder.
When copying this folder to server 2, the system does not see the cached packages , because in theory you need to execute apt-get update
But then the problem arises, Internet access on server 2. How can I copy an already updated database with packages from server 1 to server 2? Maybe there are some alternative solutions? I really don't want to raise the proxy.
Answer the question
In order to leave comments, you need to log in
On the machine where you need to upgrade:
# apt-get --print-uris -y dist-upgrade |grep ^\'|awk -F "'" '{print $2}' > urls.lst
Copy the file to the machine with the Internet. And there:
# wget -i urls.lst
What will inflate, we carry back to the first one and run it in the folder with the pumped one:
# dpkg -R <directory>
There was a good thread on the Ubuntu forum - Here it is
Hope it helps.
from the apt cache all packages can be installed using dpkg
Drop the cache from server1 to a separate directory on server2 ( not /var/cache/apt/archives/) and add this local directory as one of the apt sources in sources.list):
$ sudo mkdir /path/to/new/debs
$ [кидаете все пакеты туда]
$ cd /path/to/new/debs
$ sudo dpkg-scanpackages . /dev/null | gzip -c9 > Packages.gz
Добавляете строчку в /etc/apt/sources.list:
deb file:/path/to/new/debs/ /
$ sudo aptitude update
$ sudo aptitude upgrade
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question