Rollback to previous version subversion using apt-get
James McDonald
james
Mon Dec 27 08:59:24 PST 2004
Myles Green wrote:
>On Mon, 2004-27-12 at 23:39 +1100, James McDonald wrote:
>
>
>>Myles Green wrote:
>>
>>
>>
>>>On Mon, 2004-20-12 at 18:51 +1100, James McDonald wrote:
>>>
>>>
>>>
>>>
>>>>I recently blindly did a apt-get update && apt-get dist-upgrade and
>>>>after ward noticed that my subversion repository had broken.
>>>>
>>>>I want to roll back to previous version but am wondering where the log
>>>>file that tells one what version of subversion apt updated from and to
>>>>is listed.
>>>>
>>>>Does anyone know?
>>>>
>>>>
>>>>
>>>>
>>>You might find it in /var/backups/dpkg.status.n where n can be 0-9 or
>>>if
>>>you can remember the date you performed that update, do an ls -l on
>>>/var/backups/ and look at that day's dpkg.status log as every apt-get
>>>action is logged to that file.
>>>
>>>If you're really lucky, and you haven't cleared /var/cache/apt/archives
>>>your previous version should still be there.
>>>
>>>Of course, if you're not using Debian (or Ubuntu or some other
>>>Debian-based
>>>distro) all bets are off.
>>>
>>>Good luck,
>>>Myles
>>>
>>>
>>>
>>>
>>>
>>No such luck I'm using Fedora Core 1 and there isn't any file or
>>directory at /var/backups/*
>>
>>Any ideas where apt4rpm would put it's logs?
>>
>>
>
>Sorry, I'm not that familiar with apt4rpm :-(
>
>Did you poke around in /var/cache at all?
>
>Perhaps Lonnie might be able to help you with this.
>
>Sorry I couldn't help,
>Myles
>
>
>
I ended up looking in /var/log/rpmpkg* files and found the following
for i in rpmpkgs* ; do echo Contents of $i\: && cat $i | grep subver ; done
Contents of rpmpkgs:
subversion-1.1.1-0.1.1.fc1.rf.i386.rpm
Contents of rpmpkgs.1:
subversion-1.1.1-0.1.1.fc1.rf.i386.rpm
Contents of rpmpkgs.2:
subversion-1.1.1-0.1.1.fc1.rf.i386.rpm
Contents of rpmpkgs.3:
subversion-0.32.1-5.i386.rpm
Contents of rpmpkgs.4:
subversion-0.32.1-5.i386.rpm
It appears that some process writes a regular list of all packages on
the system so once I found the reference to the previous version in
/var/log/rpmpkgs.3 I simply downloaded the correct older version then
followed the subversion upgrade procedure at
http://subversion.tigris.org/project_faq.html#dumpload. This now has me
back to current version working repository... But it's a bit of a lesson
learn't regarding doing a blind apt-get dist-upgrade
More information about the Linux-users
mailing list