Re: port update problem - newbie
--- Tabor Kelly [EMAIL PROTECTED] wrote: saravanan ganapathy wrote: snip --- Erik Norgaard [EMAIL PROTECTED] wrote: Since I am very new to freebsd, I am not sure abt the ports collections which I don't want. Since you are new, I will give you some (ports) advice: 1. Always update all of your ports so that you can use portupgrade. 2. Use portupgrade. 3. Read /usr/ports/UPDATING if you want things to go smoothly. 4. If you forget step 3, and step 3 happens to have some bad news in it (usually pertaining to gettext), 'portupgrade -rRf [some port]' can work wonders. 5. Don't forget to do a 'portsdb -uU' after cvsup'ing your ports. My quick start to portupgrade: http://tabor.taborandtashell.net/serversetup/ports.html Where I learned about portupgrade: http://www.onlamp.com/pub/a/bsd/2003/08/28/FreeBSD_Basics.html The above link was very useful to me and I 've learnt the portupgrade procedure. I am also looking for package management. I know that a package can be installed using 'pkg_add -r sendmail'. But how to keep update these packages like ports? I need to choose either ports or packages. Sarav __ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: port update problem - newbie
saravanan ganapathy [EMAIL PROTECTED] writes: I am also looking for package management. I know that a package can be installed using 'pkg_add -r sendmail'. But how to keep update these packages like ports? Use portupgrade for that too; it knows how to deal with ports or packages. I need to choose either ports or packages. Nonsense. In fact, once you have installed them, it is *very* hard to *tell* whether a program was installed from a port or a package. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: port update problem - newbie
On Monday 24 January 2005 05:11 am, saravanan ganapathy wrote: --- Tabor Kelly [EMAIL PROTECTED] wrote: saravanan ganapathy wrote: snip --- Erik Norgaard [EMAIL PROTECTED] wrote: Since I am very new to freebsd, I am not sure abt the ports collections which I don't want. Since you are new, I will give you some (ports) advice: 1. Always update all of your ports so that you can use portupgrade. 2. Use portupgrade. 3. Read /usr/ports/UPDATING if you want things to go smoothly. 4. If you forget step 3, and step 3 happens to have some bad news in it (usually pertaining to gettext), 'portupgrade -rRf [some port]' can work wonders. 5. Don't forget to do a 'portsdb -uU' after cvsup'ing your ports. My quick start to portupgrade: http://tabor.taborandtashell.net/serversetup/ports.html Where I learned about portupgrade: http://www.onlamp.com/pub/a/bsd/2003/08/28/FreeBSD_Basics.html The above link was very useful to me and I 've learnt the portupgrade procedure. I am also looking for package management. I know that a package can be installed using 'pkg_add -r sendmail'. But how to keep update these packages like ports? I need to choose either ports or packages. Why? Either is an appropriate method of updating. Maintaining the ports using something like portupgrade is frequently faster because you can update the port as soon as it is changed. With a package, you have to wait until the package has been built and moved to the mirrors. If a package is available, you save a lot of cpu usage on slow machines. In order to use current versions, both require maintaining an uptodate port structure. You just have to determine which method is an optimum for your usage. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: port update problem - newbie
--- Kent Stewart [EMAIL PROTECTED] wrote: On Monday 24 January 2005 05:11 am, saravanan ganapathy wrote: --- Tabor Kelly [EMAIL PROTECTED] wrote: saravanan ganapathy wrote: snip --- Erik Norgaard [EMAIL PROTECTED] wrote: Since I am very new to freebsd, I am not sure abt the ports collections which I don't want. Since you are new, I will give you some (ports) advice: 1. Always update all of your ports so that you can use portupgrade. 2. Use portupgrade. 3. Read /usr/ports/UPDATING if you want things to go smoothly. 4. If you forget step 3, and step 3 happens to have some bad news in it (usually pertaining to gettext), 'portupgrade -rRf [some port]' can work wonders. 5. Don't forget to do a 'portsdb -uU' after cvsup'ing your ports. My quick start to portupgrade: http://tabor.taborandtashell.net/serversetup/ports.html Where I learned about portupgrade: http://www.onlamp.com/pub/a/bsd/2003/08/28/FreeBSD_Basics.html The above link was very useful to me and I 've learnt the portupgrade procedure. I am also looking for package management. I know that a package can be installed using 'pkg_add -r sendmail'. But how to keep update these packages like ports? I need to choose either ports or packages. Why? Either is an appropriate method of updating. Maintaining the ports using something like portupgrade is frequently faster because you can update the port as soon as it is changed. With a package, you have to wait until the package has been built and moved to the mirrors. If a package is available, you save a lot of cpu usage on slow machines. In order to use current versions, both require maintaining an uptodate port structure. You just have to determine which method is an optimum for your usage. I have some doubts in port upgrade 1) I think that if I upgrade a port, first the current package will be removed and then new package will be installed.Let us assume that I am running a web server and apache needs to be upgraded. In this case, if the current apache is removed and the new apache 'll be installed, then what abt my existing configuration? What abt the down time? 2) What is the best method to upgrade ports without any downtime for my live servers? 3) Even after upgraded my all ports, 'portaudit' says still problem with 'perl'.So what should I do? Please suggest me Sarav __ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: port update problem - newbie
On Monday 24 January 2005 09:52 pm, saravanan ganapathy wrote: --- Kent Stewart [EMAIL PROTECTED] wrote: On Monday 24 January 2005 05:11 am, saravanan ganapathy wrote: --- Tabor Kelly [EMAIL PROTECTED] wrote: saravanan ganapathy wrote: snip --- Erik Norgaard [EMAIL PROTECTED] wrote: Since I am very new to freebsd, I am not sure abt the ports collections which I don't want. Since you are new, I will give you some (ports) advice: 1. Always update all of your ports so that you can use portupgrade. 2. Use portupgrade. 3. Read /usr/ports/UPDATING if you want things to go smoothly. 4. If you forget step 3, and step 3 happens to have some bad news in it (usually pertaining to gettext), 'portupgrade -rRf [some port]' can work wonders. 5. Don't forget to do a 'portsdb -uU' after cvsup'ing your ports. My quick start to portupgrade: http://tabor.taborandtashell.net/serversetup/ports.html Where I learned about portupgrade: http://www.onlamp.com/pub/a/bsd/2003/08/28/FreeBSD_Basics.html The above link was very useful to me and I 've learnt the portupgrade procedure. I am also looking for package management. I know that a package can be installed using 'pkg_add -r sendmail'. But how to keep update these packages like ports? I need to choose either ports or packages. Why? Either is an appropriate method of updating. Maintaining the ports using something like portupgrade is frequently faster because you can update the port as soon as it is changed. With a package, you have to wait until the package has been built and moved to the mirrors. If a package is available, you save a lot of cpu usage on slow machines. In order to use current versions, both require maintaining an uptodate port structure. You just have to determine which method is an optimum for your usage. I have some doubts in port upgrade 1) I think that if I upgrade a port, first the current package will be removed and then new package will be installed.Let us assume that I am running a web server and apache needs to be upgraded. In this case, if the current apache is removed and the new apache 'll be installed, then what abt my existing configuration? What abt the down time? Well, you have to kill apache to stop the httpd processes. The problem with apache is that the install creates its own /usr/local/www/data link. If you use apache, you can create something like ln -sf /.../data data. Then, you can upgrade apache. The install is very fast and I immediately unlink the link that the apache install created and link to my data directory. I have all of my web data on /usr2/data. The link to /usr2/data is gone for less than 30 seconds. Then, you need to stopapache and startapache. There has to be many choices on the order of doing things. You aren't running the updated apache until you do the down/up toggle. Your downtime will only be a couple of minutes and apache goes down gracefully. Toggling apache is less than 30 seconds on my slow system. I think my web server is down for less than 2 minutes from the time the upgrade destroys my data link until everything is back in order and is using the new version of apache. Network congestion can cause problems longer than that :). 2) What is the best method to upgrade ports without any downtime for my live servers? There isn't any to my way of thinking. You have to stop the process and restart it. Some processes you can kill -HUP but ports are mostly different. You can reduce the down time to a small number but there will be a period when that process won't be available. One of the problem with live databases is that management thinks they need to be up 24x7. You need to be able to do maintenance and you may have to schedule downtime. For security reasons, you may not want to wait for a component failure to do the upgrades :). FWIW, everyone I have known that was involved with system work did their upgrades on weekends or between 2 am and 6 am. Hollidays are also handy times for upgrading. 3) Even after upgraded my all ports, 'portaudit' says still problem with 'perl'.So what should I do? I don't have any suggestion. Perl 5.8.5 just showed up on the list. I already have cups-base, mozilla, and linux-tiff. I don't have any daemon processes that use perl. Is it something you really have to worry about at this moment. Kent Please suggest me -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: port update problem - newbie
saravanan ganapathy wrote: snip --- Erik Norgaard [EMAIL PROTECTED] wrote: Since I am very new to freebsd, I am not sure abt the ports collections which I don't want. Since you are new, I will give you some (ports) advice: 1. Always update all of your ports so that you can use portupgrade. 2. Use portupgrade. 3. Read /usr/ports/UPDATING if you want things to go smoothly. 4. If you forget step 3, and step 3 happens to have some bad news in it (usually pertaining to gettext), 'portupgrade -rRf [some port]' can work wonders. 5. Don't forget to do a 'portsdb -uU' after cvsup'ing your ports. My quick start to portupgrade: http://tabor.taborandtashell.net/serversetup/ports.html Where I learned about portupgrade: http://www.onlamp.com/pub/a/bsd/2003/08/28/FreeBSD_Basics.html -- Tabor Kelly [EMAIL PROTECTED] http://tabor.taborandtashell.net ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
port update problem - newbie
Hai I am using 5.3release and when I try to update ports collections, I am getting the following error Release not specified for collection host=cvsup1.freebsd.org How to solve this? Sarav __ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: port update problem - newbie
saravanan ganapathy wrote: Hai I am using 5.3release and when I try to update ports collections, I am getting the following error Release not specified for collection host=cvsup1.freebsd.org How to solve this? This could be an invalid tag, but please submit your supfile. Normally you can take the sample supfile and only change the host - is this what you've done? Cheers Erik -- Ph: +34.666334818 web: http://www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: port update problem - newbie
--- Erik Norgaard [EMAIL PROTECTED] wrote: saravanan ganapathy wrote: Hai I am using 5.3release and when I try to update ports collections, I am getting the following error Release not specified for collection host=cvsup1.freebsd.org How to solve this? This could be an invalid tag, but please submit your supfile. Normally you can take the sample supfile and only change the host - is this what you've done? Yah. I had a mistake and corrected. My file looks as *default host=cvsup10.us.freebsd.org *default base=/var/db *default prefix=/usr *default release=cvs tag=. *default delete use-rel-suffix ports-all #ports-base #ports-accessibility #ports-arabic #ports-archivers #ports-astro #ports-audio #ports-benchmarks #ports-biology #ports-cad # .. .. .. #ports-x11-wm It takes longtime to update the ports. I am not sure abt my config. Should I change anything else? Sarav __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: port update problem - newbie
saravanan ganapathy wrote: Yah. I had a mistake and corrected. It takes longtime to update the ports. I am not sure abt my config. Should I change anything else? How long it takes depends on the number of changes, first time will probably take a longer. You can speed up in two ways: instead of ports-all specify the parts you want updated. Or, use a refuse file. The two methods work oposite: with the first you actively select the parts you want with refuse file you active select the parts you don't want. I recommend the latter because some times the ports tree is reorganized and you won't get new groups if you use the first method. Whichever you choose, sometimes you get surprised: I found a nice tool for converting chm-files to html in the chinese collection!?? Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: port update problem - newbie
--- Erik Norgaard [EMAIL PROTECTED] wrote: saravanan ganapathy wrote: Yah. I had a mistake and corrected. It takes longtime to update the ports. I am not sure abt my config. Should I change anything else? How long it takes depends on the number of changes, first time will probably take a longer. You can speed up in two ways: instead of ports-all specify the parts you want updated. Or, use a refuse file. The two methods work oposite: with the first you actively select the parts you want with refuse file you active select the parts you don't want. I recommend the latter because some times the ports tree is reorganized and you won't get new groups if you use the first method. Whichever you choose, sometimes you get surprised: I found a nice tool for converting chm-files to html in the chinese collection!?? Since I am very new to freebsd, I am not sure abt the ports collections which I don't want. I am trying to use freebsd for web hosting servers.Can you list the ports which are not useful for servers? How to use refuse file? Sarav __ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: port update problem - newbie
saravanan ganapathy wrote: Since I am very new to freebsd, I am not sure abt the ports collections which I don't want. I am trying to use freebsd for web hosting servers.Can you list the ports which are not useful for servers? This is a tough question, if you now have a fully updated ports tree and you have sufficient diskspace then let it be that way. As you get things up running you'll get a feel of what you don't want/need. It is anoying if you have to wait for the update to complete, if you have flatrate connection, you may consider a cronjob to update the ports tree for you, say once a week or once a month. If you are newbie, then you might prefer not to update the ports tree so often, new ports may require other ports to be updated that are depended on by yet other ports. This can be a showblocker first time you stumple into it. So, let go with it for a while and get comfy with the OS. How to use refuse file? See cvsup man page Cheers Erik -- Ph: +34.666334818 web: http://www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: port update problem - newbie
saravanan ganapathy [EMAIL PROTECTED] writes: Since I am very new to freebsd, I am not sure abt the ports collections which I don't want. Then try keeping them all. After the first time, it doesn't take that long to update the collection of makefiles. Note that the ports system does not officially support anything *but* keeping the whole ports tree, so you want to keep the whole thing and update it all at the same time, unless limited bandwidth or limited disk space make that impractical. I am trying to use freebsd for web hosting servers.Can you list the ports which are not useful for servers? Not really. And you should have plenty of bandwidth and disk space, so leaving out some of the ports will cost you more effort than it saves. How to use refuse file? The cvsup manual covers this quite well. (man cvsup) But again, I advise you not to bother. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]