Discussion:
A question about using portsnanp to upgrade ports tree
(too old to reply)
Nan Xiao
2016-06-16 09:30:00 UTC
Permalink
Hi all,

Greetings from me! I have a question about using portsnap.

After reading Using the Ports Collection in handbook, per my understanding, if /usr/ports/* is not empty
after installing FreeBSD:

/usr/ports # ls
.arcconfig Mk audio distfiles hebrew multimedia print x11
.gitignore README benchmarks dns hungarian net russian x11-clocks
.....

I only need to use "portsnanp fetch update" to upgrade ports tree, no necessary to do "portsnanp fetch extract".

Is my understanding right? Thanks very much in advance!



Best Regards
Nan Xiao (肖楠)
Skype: xiaonan19830818
Jabber/XMPP: ***@xmpp.ru.net
Telegram: nanxiao
Personal website (Chinese): http://nanxiao.me/
Personal website (English): http://nanxiao.me/en
Chinese DTrace website: http://chinadtrace.org/
Christofer C. Bell
2016-06-17 00:48:25 UTC
Permalink
You will still need to do the extract. If you try to upgrade a ports tree
that has not previously been installed by portsnap, it will give you an
error message telling you to do an extract.
Post by Nan Xiao
Hi all,
Greetings from me! I have a question about using portsnap.
After reading Using the Ports Collection in handbook, per my
understanding, if /usr/ports/* is not empty
/usr/ports # ls
.arcconfig Mk audio distfiles hebrew
multimedia print x11
.gitignore README benchmarks dns hungarian
net russian x11-clocks
.....
I only need to use "portsnanp fetch update" to upgrade ports tree, no
necessary to do "portsnanp fetch extract".
Is my understanding right? Thanks very much in advance!
Best Regards
Nan Xiao (肖楠)
Skype: xiaonan19830818
Telegram: nanxiao
Personal website (Chinese): http://nanxiao.me/
Personal website (English): http://nanxiao.me/en
Chinese DTrace website: http://chinadtrace.org/
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "
--
Chris

"If you wish to make an apple pie from scratch, you must first invent the
Universe." -- Carl Sagan
Nan Xiao
2016-06-17 02:54:19 UTC
Permalink
Hi Chris,

Yes, you are absolutely right! If I don't run "portsnap extract", I get the following errors:

/usr/ports was not created by portsnap.
You must run 'portsnap extract' before running 'portsnap update'.

Thanks very much for your answer again!



Best Regards
Nan Xiao (肖楠)
Skype: xiaonan19830818
Jabber/XMPP: ***@xmpp.ru.net
Telegram: nanxiao
Personal website (Chinese): http://nanxiao.me/
Personal website (English): http://nanxiao.me/en
Chinese DTrace website: http://chinadtrace.org/

From: Christofer C. Bell
Date: 2016-06-17 08:48
To: Nan Xiao; FreeBSD Questions
Subject: Re: A question about using portsnanp to upgrade ports tree
You will still need to do the extract. If you try to upgrade a ports tree that has not previously been installed by portsnap, it will give you an error message telling you to do an extract.

On Thu, Jun 16, 2016 at 4:30 AM, Nan Xiao <***@chinadtrace.org> wrote:
Hi all,

Greetings from me! I have a question about using portsnap.

After reading Using the Ports Collection in handbook, per my understanding, if /usr/ports/* is not empty
after installing FreeBSD:

/usr/ports # ls
.arcconfig Mk audio distfiles hebrew multimedia print x11
.gitignore README benchmarks dns hungarian net russian x11-clocks
.....

I only need to use "portsnanp fetch update" to upgrade ports tree, no necessary to do "portsnanp fetch extract".

Is my understanding right? Thanks very much in advance!



Best Regards
Nan Xiao (肖楠)
Skype: xiaonan19830818
Jabber/XMPP: ***@xmpp.ru.net
Telegram: nanxiao
Personal website (Chinese): http://nanxiao.me/
Personal website (English): http://nanxiao.me/en
Chinese DTrace website: http://chinadtrace.org/
_______________________________________________
freebsd-***@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-***@freebsd.org"



--
Chris

"If you wish to make an apple pie from scratch, you must first invent the Universe." -- Carl Sagan
Steve Burton
2016-06-17 05:38:07 UTC
Permalink
Post by Nan Xiao
Hi all,
Greetings from me! I have a question about using portsnap.
After reading Using the Ports Collection in handbook, per my understanding, if /usr/ports/* is not empty
/usr/ports # ls
.arcconfig Mk audio distfiles hebrew multimedia print x11
.gitignore README benchmarks dns hungarian net russian x11-clocks
.....
I only need to use "portsnanp fetch update" to upgrade ports tree, no necessary to do "portsnanp fetch extract".
Is my understanding right? Thanks very much in advance!
Best Regards
Nan Xiao (肖楠)
Skype: xiaonan19830818
Telegram: nanxiao
Personal website (Chinese): http://nanxiao.me/
Personal website (English): http://nanxiao.me/en
Chinese DTrace website: http://chinadtrace.org/
_______________________________________________
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
Hi,


you need to run 'portsnap fetch update' once only to populate the ports.
Thereafter, run 'portsnap fetch update' to keep them up to date.


Steve.

Loading...