d1ad New install and run Portsnap fetch extract update? - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old August 4th, 2012, 14:02
neilms's Avatar
neilms neilms is offline
Member
 
Join Date: Jun 2010
Location: Cydonia
Posts: 125
Thanks: 17
Thanked 2 Times in 2 Posts
Default New install and run Portsnap fetch extract update?

I have just installed FreeBSD production release version 9.0. The first thing I did was to run:
'Portsnap fetch extract update'.

I have had problems in the past keeping my system up to date and want to make sure everything works smoothly this time. Is there anything else that I need to do at this stage to keep updated?
Reply With Quote
  #2  
Old August 4th, 2012, 14:19
kpa kpa is offline
Giant Locked
 
Join Date: Jul 2010
Location: People's Technocratic Republic of Finland
Posts: 2,015
Thanks: 44
Thanked 467 Times in 397 Posts
Default

The first time you run portsnap(8) (when /usr/ports is empty) the command is
# portsnap fetch extract

After this you never use extract anymore unless you want to completely overwrite /usr/ports again. The command to update the ports tree from this on is

# portsnap fetch update

That's only the ports tree part of keeping up to date. You have to then decide if you want to use pre-built packages for updates or compile everything yourself using ports. See this post by vermaden for more information:

http://forums.freebsd.org/showpost.p...68&postcount=3
Reply With Quote
  #3  
Old August 4th, 2012, 14:20
Ogham Ogham is offline
Junior Member
 
Join Date: Jan 2012
Posts: 23
Thanks: 1
Thanked 3 Times in 3 Posts
Default

You might want to update your base system also

Code:
man freebsd-update
Reply With Quote
  #4  
Old August 4th, 2012, 15:14
neilms's Avatar
neilms neilms is offline
Member
 
Join Date: Jun 2010
Location: Cydonia
Posts: 125
Thanks: 17
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by kpa View Post
The first time you run portsnap(8) (when /usr/ports is empty) the command is
# portsnap fetch extract

After this you never use extract anymore unless you want to completely overwrite /usr/ports again. The command to update the ports tree from this on is

# portsnap fetch update

That's only the ports tree part of keeping up to date. You have to then decide if you want to use pre-built packages for updates or compile everything yourself using ports. See this post by vermaden for more information:

http://forums.freebsd.org/showpost.p...68&postcount=3
I have two further questions:

1. Ok, I read the post by vermaden and installed the update tools referred to in it. The system reported that I should run /usr/local/sbin/portaudit -Fda , which I did. I then got the report 'portaudit-0.5.17' has a problem with remote code execution and it is recommended that I update or deinstall it immediately. This is strange as I just installed it. In any case, how to I update this particular binary?

2. The shell script functions that vermaden provides ie. function ports-check, ports-update and ports-build all go in the shell startup profile. Does this mean that they will be run each and every time I start my computer? If so, this might not be a suitable method for me as I tend to start and turn off my laptop several times a day. Is this advice geared more towards a server system that does not reboot frequently?
Reply With Quote
  #5  
Old August 4th, 2012, 15:25
kpa kpa is offline
Giant Locked
 
Join Date: Jul 2010
Location: People's Technocratic Republic of Finland
Posts: 2,015
Thanks: 44
Thanked 467 Times in 397 Posts
Default

1. Your ports-mgmt/portaudit is too old, update it first by doing
# cd /usr/ports/ports-mgmt/portaudit
# make install clean

It's a good idea to set PACKAGESITE environment variable in your shell init file to this value if you plan on using pre-built packages:

Code:
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9-stable/Latest/
Replace i386 with amd64 if your system uses the amd64 version of FreeBSD9.

2. The shell functions are defined for use, not run automatically.

You don't have to follow vermaden's guide to the letter, it should give you a rough outline what should be run and in which order to update installed ports/packages.
Reply With Quote
The Following User Says Thank You to kpa For This Useful Post:
neilms (August 4th, 2012)
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Portsnap fetch update not working JoeyKrizzal Installation and Maintenance of FreeBSD Ports or Packages 5 February 16th, 2011 16:24
[Solved] portsnap fetch extract jesse Installation and Maintenance of FreeBSD Ports or Packages 3 October 26th, 2010 00:40
[Solved] FreeBSD 8.1 (amd64) update confusing after portsnap fetch extract ahavatar Installation and Maintenance of FreeBSD Ports or Packages 10 September 8th, 2010 14:40
FreeBSD-8 and #portsnap fetch extract tekinerdem Installation and Maintenance of FreeBSD Ports or Packages 8 May 6th, 2010 23:13
[Solved] portsnap fetch extract jus71n742 Installation and Maintenance of FreeBSD Ports or Packages 5 March 1st, 2010 21:30


All times are GMT +1. The time now is 13:26.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0