Returning with question about SELECTIVELY updating ports tree
Xin LI
delphij at delphij.net
Wed Jan 19 00:58:07 UTC 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 01/18/11 15:43, Mark Terribile wrote:
>> From: Xin LI <delphij at delphij.net>
>> Subject: Re: Returning with question about SELECTIVELY updating ports tree
>
>> On 01/18/11 15:00, Mark Terribile wrote:
>> [...]
>>> So: How do I upgrade my ports system selectively,
>> without wiping out everything?
>> You can actually portsnap extract a part of the ports
>> tree. e.g.:
>>
>> portsnap extract net/openldap24-server
>>
>> BUT, keep in mind that this might be more tricky than a
>> normal portsnap
>> update, as you may miss certain dependency.
>
>> Xin LI <delphij at delphij.net>
>
> Xin,
>
> Will that work on the first extract? If not, am I back to the original problem: wiping things out at random?
As long as you do 'portsnap extract category/portname' it will only
affect directories matching that. E.g. 'net/openldap' would match
net/openldap*. There is no "first extract" when you do it this way.
> Is that what I really want to achieve? Or do I want to extract the control files (INDEX?) and then update the ports one at a time?
INDEX is not a critical file, if you really need that, you should
probably generate it manually.
> It sounds like the only sane way to use portsnap is to run portsnap when the OS is first installed, before even building the first port.
Not quite but I (personally) always do that. 'portsnap extract' is
required before 'portsnap update' but not a partial extract nor fetching
update.
Cheers,
- --
Xin LI <delphij at delphij.net> http://www.delphij.net/
FreeBSD - The Power to Serve! Live free or die
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (FreeBSD)
iQEcBAEBCAAGBQJNNjcTAAoJEATO+BI/yjfBhgsIAJ4Atudcot6L+rSHM/uR3dpu
KQ3sGHOAV0f/T0384w1I8IT06oRmTNx7xk0FoLfMQzw2aX8qpbH1L5ZylDvKSKOy
Hh7S0y4QHkjbL0pcPMFp3mi606WdmHWobRPsWqSzOJB7l9zGHLAcT5yp6b2mwiMP
MupmW8GDbbphWzZ3HcQkC/VEmR1ifQ5m9LBpvOuvY77AUnElBoYfbcSF4xiBB3oV
RdtRkYfnQczjq0pZa0wsj4OWjj1HaHwzDDqSb0GvUSHV7z+98WY/yVq0XaVYUf7s
F64pvgBUUpk+ubIPwSv7E1KdyTJzEfY3+52tInZMzIaUs5ehgCxz7cGp3AtlhkE=
=vACb
-----END PGP SIGNATURE-----
More information about the freebsd-ports
mailing list