DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 23rd May 2008
Ofloo Ofloo is offline
Port Guard
 
Join Date: May 2008
Posts: 10
Thanked 1 Time in 1 Post
Default cvsup upgrading/updating ports tree

i run in ports directory

i run
cd /usr/ports
make update fetchindex
cd /usr/src
make update
make buildworld
make buildkernel
make installkernel
fastboot
mergemaster -p
make installworld
mergemaster
fastboot

portsfile
Code:
*default host=cvsup3.nl.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix
*default compress
ports-all
srcfile
Code:
*default host=cvsup4.nl.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_7_0
*default delete use-rel-suffix
*default compress
src-all
Yet after doing all that i notice that the ports packages are not upgraded/updated at all what am I doing wrong?
Reply With Quote
  #2   (View Single Post)  
Old 23rd May 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,051
Thanked 198 Times in 156 Posts
Default

What is the output of: # cd /usr/ports && make update
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 23rd May 2008
cajunman4life cajunman4life is offline
Real Name: Aaron Graves
Package Pilot
 
Join Date: May 2008
Location: Coolidge, Arizona
Posts: 203
Thanked 16 Times in 14 Posts
Default

All you're doing to the ports tree in the above is updating the makefiles from the repository. To actually upgrade/update the packages you've installed from the ports tree is to use portupgrade or portmaster or another tool such as that.
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident!
Reply With Quote
  #4   (View Single Post)  
Old 23rd May 2008
Ofloo Ofloo is offline
Port Guard
 
Join Date: May 2008
Posts: 10
Thanked 1 Time in 1 Post
Default

The output of make update is just that it adds edits removes files from /usr/ports .. afterwards i do make fetchindex, ..

Yes but when i have to update kernel and such i would want it to work, i shouldn't have to run portupgrade afterwards, of course I'm aware of portupgrade, I'm also aware of portsnap fetch update ..
Reply With Quote
  #5   (View Single Post)  
Old 23rd May 2008
cajunman4life cajunman4life is offline
Real Name: Aaron Graves
Package Pilot
 
Join Date: May 2008
Location: Coolidge, Arizona
Posts: 203
Thanked 16 Times in 14 Posts
Default

The kernel/world are completely seperate from ports. Updating kernel/world won't update ports, and vice-versa. Building the "world" only builds the base operating system. Anything you install from ports is 3rd party and not part of the base operating system.

So yes, you do have to use some other method to manage your ports installations. I'd recommend portmaster as it's a simple shell script, nothing fancy that requires a heavy depend. like ruby (*cough* portupgrade *cough*).
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident!
Reply With Quote
  #6   (View Single Post)  
Old 23rd May 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

updating kernel and world updates the userland and kernel.

ports == third party packages outside of FreeBSD source tree

that's why it doesn't work the same way ;-)
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #7   (View Single Post)  
Old 25th May 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

Quote:
Originally Posted by Ofloo View Post
The output of make update is just that it adds edits removes files from /usr/ports .. afterwards i do make fetchindex, ..
Correct. make update in /usr/ports and /usr/src works the same way: it only updates the files under /usr/ports and /usr/src.

Quote:
Yes but when i have to update kernel and such i would want it to work, i shouldn't have to run portupgrade afterwards, of course I'm aware of portupgrade, I'm also aware of portsnap fetch update ..
When you update the world and kernel, you re-compile everything, and re-install everything (the make buildworld, buildkernel, installkernel, installworld steps).

To do the same for ports, you have to re-compile and re-install them, using a tool like portmaster.

See how they both work the same way, but you were skipping the steps for the ports?
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
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
Is the source tree frozen until Nov 1st? lionsong OpenBSD General 6 7th October 2009 07:22 PM
STABLE ports tree has returned.. BSDfan666 OpenBSD Packages and Ports 2 26th July 2009 07:36 PM
CVSup src-all update and relevant ports vigol FreeBSD Installation and Upgrading 5 20th November 2008 06:34 AM
Upgrading and rebuilding ALL packages/ports chill FreeBSD Ports and Packages 8 16th June 2008 04:55 AM
Upgrading /usr/ports ClaptonOrient FreeBSD Installation and Upgrading 11 12th May 2008 10:17 AM


All times are GMT. The time now is 10:03 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick