Re: apt-cache dumpavail > /tmp/apt-chace; dpkg --update-avail /tmp/apt-chace;
On Sat, 25 Dec 1999, Shaul Karl wrote:
> I want to avoid the need to run update from within dselect after apt-get
> dist-upgrade by writing the lines
>
> Post-Invoke {
> "apt-cache dumpavail > /tmp/apt-chace";
> "dpkg --update-avail /tmp/apt-cache";
> "rm -v /tmp/apt-chace";
> "mount -o remount,ro /usr";
> };
> Is that reasonable? Are there any issues of file locking, breaking the regular
> backups of the available and status files or other things that needs special
> care?
In theory you can simply do 'apt-cache dumpavail >
/var/lib/dpkg/available' the dpkg --update-avail step is somewhat
redundant.
Jason
Reply to: