Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jun 2016 12:33:16 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Miroslav Lachman <000.fbsd@quip.cz>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: How to change repository name of installed packages in local database?
Message-ID:  <20160628103316.zabg6oipxqnfge3f@ivaldir.etoilebsd.net>
In-Reply-To: <57724E71.4030600@quip.cz>
References:  <57724E71.4030600@quip.cz>

next in thread | previous in thread | raw e-mail | index | archive | help

--zxbtvtp2f5bhoz6t
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jun 28, 2016 at 12:16:17PM +0200, Miroslav Lachman wrote:
> I searched the man pages but cannot find the answer.
> If we have machine with packages installed from more than one repository =
and
> one day we want to use some already installed packages from another
> repository, is there any easy way of switching this packages to another
> repo?
> I am looking for something similar to "pkg set" but we do not want to cha=
nge
> package name or package origin but package repository information recorded
> in sqlite.
>=20
> Example:
>=20
> # pkg query '%R %n' | sort
> codelab libiconv
> codelab mariadb55-server
> codelab p5-Error
> codelab p5-Term-ReadKey
> codelab p5-subversion
> codelab pkg-rmleaf
> codelab unzip
> codelab vim-lite
> redmine320 ImageMagick-nox11
> redmine320 ca_root_nss
> redmine320 curl
> redmine320 expat
> redmine320 fontconfig
> redmine320 freetype2
> redmine320 indexinfo
> ..
> ..
>=20
> Now we need to switch all packages from testing repo "redmine320" to
> production repo "codelab".
>=20
> Is there any other way instead of manual deinstall and reinstall of all
> those packages?
>=20

# remove the "repository" annotation
pkg annotate -D expat repository

# add the new one
pkg annotate -A expat repository codelab

For convenience we could allow to overrite an existing one, but we do not y=
et

Best regards,
bapt

--zxbtvtp2f5bhoz6t
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXclJsAAoJEGOJi9zxtz5aQo0P+gI2zHKEi/BXarc20Rq5zDU7
OZKD2Uw+3svVjDS7gR2+AzzgUFphkHKxMhb34z7x9yxlOYuZ2nRPbXlj67kl9N3P
/XDN+fhTOVFbR8QJfH+hqIy7pEc31FmudzGR8LxkEG4fi7nL3fVE2woufT6p5wTT
iUuwTXYl5t8uL9DuF4XWDBqFH7KlGfn2y16gdus/7d1frN9/Wy1wrwh2KJ6YthjB
qv0u4bxYLAteyy0lUatnqsOlj6XSLu7sEAzR6EkF2jF+ZqUrqCORTwNyevBv19QB
JcFjCl/xAYJxtt9Jl36U5uhfOBWoHjlZfXaJtXeme1EsQpcCUpXp0Y/hvpMb4fW8
BFJGPey0FrlsxDtcXour8E3O/G470OEyq8XVRiYYIv9slPScJl3t1S7QMu+Ip76p
cN1brxLLcaM4TmLgVelu69W9JKVkhg4Rf3XPuFBlVM1MXYUMip5r6dzI0LWg30Ok
pOHmNvaHVUlFnUibmW2RZ4PpRFyWmzluuU9iYHQLE7M2mmNNgv9hmJUuZiX3klfC
pw2QK+XSgRa9Ed8wgaliO3fJVQpbxhlK4bcIJ3m0T32v+rxzU3v8NQfVk1bX7w77
B3I2aLa5eAtuiLgAeUoZ9QepOPdIlA5jS06P7W4PDhNyvNVOT6lK6P0Qa0rMfRNN
RG1oCWWlSjcH93QQWjES
=umgN
-----END PGP SIGNATURE-----

--zxbtvtp2f5bhoz6t--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160628103316.zabg6oipxqnfge3f>