FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian ISP

 
 
LinkBack Thread Tools
 
Old 05-15-2012, 09:55 AM
Emmanuel Kasper
 
Default Reinstall packages from /var/backups/dpkg.status file

Hi

What should be the proper way to install all packages mentionned in
/var/backups/dpkg.status ?

I do backup externally /var/backups on my servers, but I don't backup
the whole /

This would allow to a system restore by installing a minimal debian
system and playing the /var/backups/dpkg.status file from a backup.

( I know about dpkg --get-selection and friends, but since
/var/backups/dpkg.status is already there in the right place, I'd
rather use that on )

Greets

Manu


--
To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4FB22829.8090703@openforce.com">http://lists.debian.org/4FB22829.8090703@openforce.com
 
Old 05-15-2012, 06:56 PM
Keith Edmunds
 
Default Reinstall packages from /var/backups/dpkg.status file

On Tue, 15 May 2012 11:55:53 +0200, emmanuel.kasper@openforce.com said:

> ( I know about dpkg --get-selection and friends, but since
> /var/backups/dpkg.status is already there in the right place, I'd
> rather use that on )

dpkg --get-selections is the right tool for this. It is trivial to run
that command, with redirected output to a file, prior to your backups (or
simply from /etc/cron.daily if you prefer). Saying that dpkg.status is
already there is a bit like saying every package has an entry
in /usr/share/doc, so I want to use that. It's not designed to reinstall
all packages; dpkg --get-selections is designed for that.

tl;dr: Use the right tool for the job.
--
"You can have everything in life you want if you help enough other people
get what they want" - Zig Ziglar.

Who did you help today?


--
To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120515195607.5c867004@ws.the.cage">http://lists.debian.org/20120515195607.5c867004@ws.the.cage
 

Thread Tools




All times are GMT. The time now is 12:23 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org