Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Feb 2023 08:02:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        doc@FreeBSD.org
Subject:   [Bug 269810] ports-mgmt/pkg: how to restore pkg database
Message-ID:  <bug-269810-9-6QiEMRbzGS@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-269810-9@https.bugs.freebsd.org/bugzilla/>
References:  <bug-269810-9@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269810

--- Comment #4 from Baptiste Daroussin <bapt@FreeBSD.org> ---
the fact that the new db is smaller means nothing, the original one has liv=
ed
for a while and may benefit from a vaccum for example to release free block=
s if
needed.

xzcat /var/backups/pkg.sql.xz | pkg shell

is the right way to retore a corrupted db.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269810-9-6QiEMRbzGS>