I have a lot of packages in my /var/cache/apt/archives folder. I would like APT to install them all on a new SuSE installation on another hard drive rather than downloading them all again. So I burnt them on to a CD. I then copied them on to the new hard drive, keeping the same path. However, I can't get APT on the new hard drive to install them. If I reselect all these packages with Synaptic, it wants to download them all again, not look in the folder. How can I get APT to look in the folder and just install them from there? I have tried "rpm --rebuilddb" but that hasn't solved it. An associated question: Does APT make a log of what it downloads? I think it must do. For example, if 8 packages are marked in Synaptic for downloading and the download is interrupted after only a few have been downloaded, if these same 8 packages are later marked again for the download to be resumed, those already downloaded are skipped, but they are all installed. I can't find where it logs what it is doing. Perhaps there is one (simple?) answer for both questions? Any help will be gratefully received. Many thanks Keith
I'm sure there are more knowledgable people who will correct me if i'm wrong, but here goes..
I have a lot of packages in my /var/cache/apt/archives folder. I would like APT to install them all on a new SuSE installation on another hard drive rather than downloading them all again. So I burnt them on to a CD.
I then copied them on to the new hard drive, keeping the same path. However, I can't get APT on the new hard drive to install them. If I reselect all these packages with Synaptic, it wants to download them all again, not look in the folder.
How can I get APT to look in the folder and just install them from there? I have tried "rpm --rebuilddb" but that hasn't solved it.
If you've already got the rpms downloaded, then why are you bothering to use apt to install them? Why not just "rpm -Uvh *.rpm" in that dir? APT is just a front end to RPM/DEB to help with downloading and satisfying dependencies. Since it was APT that downloaded them, I would assume that all of the new packages they depend on are also in that dir.
An associated question:
Does APT make a log of what it downloads? I think it must do. For example, if 8 packages are marked in Synaptic for downloading and the download is interrupted after only a few have been downloaded, if these same 8 packages are later marked again for the download to be resumed, those already downloaded are skipped, but they are all installed. I can't find where it logs what it is doing.
I'm pretty sure that what is happening is that it is either doing some sort of checksum or comparing the filesize/timestamp, declaring them to be the same file, and going on to the next selected package. NcFTP does the same thing (filesize/timestamp) when doing downloads if there is a file of the same name in the destination directory.. -- trey
On Friday 29 Aug 2003 5:40 pm, Trey Gruel wrote:
I'm sure there are more knowledgable people who will correct me if i'm wrong, but here goes..
I have a lot of packages in my /var/cache/apt/archives folder. I would like APT to install them all on a new SuSE installation on another hard drive rather than downloading them all again. So I burnt them on to a CD.
I then copied them on to the new hard drive, keeping the same path. However, I can't get APT on the new hard drive to install them. If I reselect all these packages with Synaptic, it wants to download them all again, not look in the folder.
How can I get APT to look in the folder and just install them from there? I have tried "rpm --rebuilddb" but that hasn't solved it.
If you've already got the rpms downloaded, then why are you bothering to use apt to install them? Why not just "rpm -Uvh *.rpm" in that dir? APT is just a front end to RPM/DEB to help with downloading and satisfying dependencies. Since it was APT that downloaded them, I would assume that all of the new packages they depend on are also in that dir.
An associated question:
Does APT make a log of what it downloads? I think it must do. For example, if 8 packages are marked in Synaptic for downloading and the download is interrupted after only a few have been downloaded, if these same 8 packages are later marked again for the download to be resumed, those already downloaded are skipped, but they are all installed. I can't find where it logs what it is doing.
I'm pretty sure that what is happening is that it is either doing some sort of checksum or comparing the filesize/timestamp, declaring them to be the same file, and going on to the next selected package. NcFTP does the same thing (filesize/timestamp) when doing downloads if there is a file of the same name in the destination directory..
-- trey
Thanks for the reply and information, Trey, and apologies for this delay in answering. I tried "rpm -Uvh *.rpm", but got some dependancy problems, which I hadn't got using Synaptic on the first download. So, rather than solving them I decided to try to get APT to install from the hard drive. I assumed that the version number and datestamp of the files on the hard drive was the same as the ones on the APT repository, but didn't check. Perhaps they weren't. Cheers Keith
Op vrijdag 29 augustus 2003 17:50, schreef Keith Powell:
I have a lot of packages in my /var/cache/apt/archives folder. I would like APT to install them all on a new SuSE installation on another hard drive rather than downloading them all again. So I burnt them on to a CD.
I then copied them on to the new hard drive, keeping the same path. However, I can't get APT on the new hard drive to install them. If I reselect all these packages with Synaptic, it wants to download them all again, not look in the folder.
How can I get APT to look in the folder and just install them from there?
Does your sources.list file look the same? Did you do an "apt-get update" at the new machine? Are you sure that the rpms are the most recent one, if there are newer pkgs at the server, these will be selected.
I have tried "rpm --rebuilddb" but that hasn't solved it.
Apt and rpm are 2 complete different things. rpm is the truck bringing the load and apt is the manager telling what to load and where to bring it.
An associated question:
Does APT make a log of what it downloads? I think it must do. For example,
apt-get does not do did natively. You could add the following script:
/usr/lib/apt/scripts/log for i, pkg in ipairs(pkglist()) do if statupgrade(pkg) then print(pkgname(pkg)..": "..verstr(pkgvercur(pkg)).." -> "..verstr (pkgvercand(pkg))) end end
Now in /etc/apt/apt.conf you have to connect this to an apt-get slow, e.g: Scripts::Apt::Upgrade:: "log"; Now each time a upgrade is performed you get the update info. More about apt and scripting at: https://moin.conectiva.com.br/AptRpm/Scripting
if 8 packages are marked in Synaptic for downloading and the download is interrupted after only a few have been downloaded, if these same 8 packages are later marked again for the download to be resumed, those already downloaded are skipped, but they are all installed. I can't find where it logs what it is doing.
Perhaps there is one (simple?) answer for both questions?
Apt sees the package in the archive directory and knows that the download is complete. For this reason it can skip the download. -- Richard Bos Without a home the journey is endless
On Friday 29 Aug 2003 8:29 pm, Richard Bos wrote:
Op vrijdag 29 augustus 2003 17:50, schreef Keith Powell:
I have a lot of packages in my /var/cache/apt/archives folder. I would like APT to install them all on a new SuSE installation on another hard drive rather than downloading them all again. So I burnt them on to a CD.
I then copied them on to the new hard drive, keeping the same path. However, I can't get APT on the new hard drive to install them. If I reselect all these packages with Synaptic, it wants to download them all again, not look in the folder.
How can I get APT to look in the folder and just install them from there?
Does your sources.list file look the same? Did you do an "apt-get update" at the new machine? Are you sure that the rpms are the most recent one, if there are newer pkgs at the server, these will be selected.
I have tried "rpm --rebuilddb" but that hasn't solved it.
Apt and rpm are 2 complete different things. rpm is the truck bringing the load and apt is the manager telling what to load and where to bring it.
An associated question:
Does APT make a log of what it downloads? I think it must do. For example,
apt-get does not do did natively. You could add the following script:
/usr/lib/apt/scripts/log
for i, pkg in ipairs(pkglist()) do if statupgrade(pkg) then print(pkgname(pkg)..": "..verstr(pkgvercur(pkg)).." -> "..verstr (pkgvercand(pkg))) end end
Now in /etc/apt/apt.conf you have to connect this to an apt-get slow, e.g: Scripts::Apt::Upgrade:: "log";
Now each time a upgrade is performed you get the update info.
More about apt and scripting at: https://moin.conectiva.com.br/AptRpm/Scripting
if 8 packages are marked in Synaptic for downloading and the download is interrupted after only a few have been downloaded, if these same 8 packages are later marked again for the download to be resumed, those already downloaded are skipped, but they are all installed. I can't find where it logs what it is doing.
Perhaps there is one (simple?) answer for both questions?
Apt sees the package in the archive directory and knows that the download is complete. For this reason it can skip the download.
Hello Richard. Thank you for your comprehensive reply, and sorry for the delay in answering it. I did do an "apt-get update" on the new installation. Although I assumed that the files on the repository were the same as the ones on the hard drive, the ones on the drive were about two weeks old, so they may have been superceeded. I must check later today, when I have time. I did an "rpm --rebuilddb" in case APT looked in that file during its checking. I didn't know if it did or not. At that time, I was trying all sorts of things to get APT to install from the hard drive. Thank you for the script. Cheers Keith
participants (3)
-
Keith Powell
-
Richard Bos
-
Trey Gruel