The FreeBSD Diary

The FreeBSD Diary (TM) Remember
I remember
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 newbie question:whats the difference between cvsuping source and cvsuping ports?
Author: AC 
Date:   18-02-01 19:31

i guess thati'm what you'd call a newbie to freebsd. but i'm wondering what the difference between cvsuping the ports and cvsuping the source is? i thought the ports used source code to install apps. and how does the source vs ports thing tie into buildworld and install world? thanks

ac

Reply To This Message
 
 Re: newbie question:whats the difference between cvsuping source and cvsuping ports?
Author: Apalula 
Date:   18-02-01 20:06

cvsuping the ports only updates source code for the ports. cvsuping the src updates all of the source code for the entire operating system (except for the ports). When you do buldworld and installworld, you are compiling from the src (not the ports). does that answer your question?

Reply To This Message
 
 Re: newbie question:whats the difference between cvsuping source and cvsuping ports?
Author: AC 
Date:   18-02-01 20:34

ok, i just recently installed freebsd 4.2. if i wanted to get all of the security fixes and updates since the CD was put out i would cvsup the sources and do a makeworld and installworld, and them make a new kernel and reboot?? also, does cvsuping the source like that get ALL of the source or just the source that goes along with whats installed on my system? and if it gets all of it, wouldn't it install a bunch of stuff i don't need??

basically, tell me if this is right: i cvsup the source when i want to update the WHOLE system at once. i cvsup the ports when i just want to install/updates the newest version of or two apps. and if this is right, how often should i update the whole system via source? roughly about how long would it take to complie on a P2 300 with 80MB of ram and how much disk space are we talking here? thanks

Reply To This Message
 
 Re: newbie question:whats the difference between cvsuping source and cvsuping ports?
Author: Apalula 
Date:   18-02-01 20:53

"if i wanted to get all of the security fixes and updates since the CD was put out i would cvsup the sources and do a makeworld and installworld, and them make a new kernel and reboot??"

You hit the nail on the head.

"does cvsuping the source like that get ALL of the source or just the source that goes along with whats installed on my system?"

ALL the source gets downloaded. But only the stuff that's already on your system gets installed. there's a config file (I can't remember which one right now) that keeps track of what you installed from the CD, and when you do make installworld only those apps get updated. (But NOT the ports, the ports is separate.)

"basically, tell me if this is right: i cvsup the source when i want to update the WHOLE system at once. i cvsup the ports when i just want to install/updates the newest version of or two apps."

Correct, but only the parts of your system that are already in place get updated when you do make installworld.

"and if this is right, how often should i update the whole system via source?"

It depends on how frequent your bugs need updating, if you have any in the apps that you use. Some people update their sources every night (to keep up with the kernel).

"roughly about how long would it take to complie on a P2 300 with 80MB of ram and how much disk space are we talking here?"

1. You need about 250 MB for the sources (in /usr/src) if you didn't already install it from the CD. If you have the src'es already installed, updateing them shouldn't take any more than 10-20 MB.

2. when you do make buildworld, the object files are put in /usr/obj, and that takes 400-450 MB.

3. On my AMD k6-2 400 MHz, it takes about 1 hour to 1 1/2 hour to compile the entire sources (as in 'make buildworld'), and 15 minutes to compile the kernel.

Reply To This Message
 
 Re: newbie question:whats the difference between cvsuping source and cvsuping ports?
Author: AC 
Date:   18-02-01 21:05

ok, so i do a makeworld and compile a bunch of crap that i don't use, and won't install and will delete after what i do use is installed?? whats up with that?

"ALL the source gets downloaded. But only the stuff that's already on your system gets installed. there's a config file (I can't remember which one right now) that keeps track of what you installed from the CD, and when you do make installworld only those apps get updated. (But NOT the ports, the ports is separate.)"

so anything i installed off of the Cd gets updated via the sources/installworld? and anything i got off the ports ISN'T updated via installworld so i have to go into the apps directory and make install it manually after cvsuping the ports to updat them?

thanks again, BTW the site is great for newbies

Reply To This Message
 
 Re: newbie question:whats the difference between cvsuping source and cvsuping ports?
Author: Apalula 
Date:   19-02-01 01:54

"so anything i installed off of the Cd gets updated via the
sources/installworld? and anything i got off the ports ISN'T updated via installworld so i have to go into the apps directory and make install it manually after cvsuping the ports to updat them?"

That is correct. You can also fine-tune your cvsup to only download src'es that you want. See /usr/share/examples/cvsup/stable-supfile

You can also fine-tune 'make' so when you 'make buildworld' it only compiles the stuff you want instead of everything. Take a look at /etc/defaults/make.conf

Here's another good newbie-oriented site -- http://www.mostgraveconcern.com/freebsd/

Reply To This Message
 
 Re: newbie question:whats the difference between cvsuping source and cvsuping ports?
Author: Daniel Schrock 
Date:   22-02-01 19:32

actually, if you already have sources installed, then cvsup will only pull down sources that have been changed. its smart enough to know that if no changes haven't been made, why waste the time and bandwidth to dl them again.
if you rarely cvsup, you prob will receive most of the sources. if you cvsup frequenly, you will see you cvsup time drop to a few minutes, maybe less.
when you build and install world, you are only building a base system. all the utilities that the os itself needs/uses/provides. you probably won't find yourself unistalling much. things that are truely optional can be filtered out of the cvsup (read the sup-file for info on this)

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org