View previous topic :: View next topic |
Author |
Message |
sp33dy n00b
Joined: 17 Apr 2003 Posts: 60
|
Posted: Mon Feb 14, 2005 9:21 am Post subject: How safe is 'emerge system'? |
|
|
I have not done it in a long time...and there is a long, long list of packages to update. I have a few nagging problems, with splashutils and a few other packages that never seem to want to emerge...but nothing serious. It may be nice to have these problems vanish, but I don't want to kill my system either.
Which comes to my question...is doing regular system/world update a wise thing to do? Is it safe, or is there a safe way to do it? Do I need to use conservativel cflag/use flag settings?
Thanks,
sp33dy. _________________ An Eye For An Eye Makes The Whole World Blind
-Ghandi |
|
Back to top |
|
|
texas1emt Guru
Joined: 27 Oct 2003 Posts: 352 Location: San Antonio, TX
|
Posted: Mon Feb 14, 2005 11:04 am Post subject: |
|
|
Well AFAIK, if you do update your world via 'emerge -Dvu world' it will cover anything 'emerge -u system' would do plus extra.
As far as automatically updating it via some method like cron, I'd recommend against it as much as I can! Sometimes there's packages you won't want to update or some packages might have issues and clash with something else you have installed. I'd recommend updating your world files as much as you like. I sit down and do it manually every 2-3 days (sometimes every day) with 'emerge -Dvup world' and then 'emerge -Dvu world'.
What you can do (and I do it, it's harmless), is put 'emerge -Duf world' in your cron. It will go grab all the tarballs for any updated packages so that when you're ready to install them there's no waiting around for them to download.
As far as your CFLAGS/USE settings, you might want to leave them alone unless you have a package that you would like extra support for something in. For example, if you compiled PHP a long time ago without jpeg or gd, and now you want to have that support in PHP when you update it, stick those use flags in your make conf and the new functionality will be included in PHP (and your other packages) when you update. _________________ M. Hayden - San Antonio, TX |
|
Back to top |
|
|
mikegpitt Advocate
Joined: 22 May 2004 Posts: 3224
|
Posted: Tue Feb 15, 2005 12:57 am Post subject: |
|
|
I'd say proceed cautiously. I was in a similar situation like you a few months ago. I emerged things that I felt were critical, and may break things sepreatly, and then checked to make sure everything updated corectly. The things which appeared not too critical I did automatically in the world update. Everything worked great though. Be careful with the etc-update afterword though. |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Tue Feb 15, 2005 1:04 am Post subject: |
|
|
Yep, usually there's no trouble, but that's usually... As posted above, your main thing to worry about is about keeping updated your config files with etc-update, if you do it manually and don't rely so much in etc-update you won't have problems. I would advise you to keep your system updated regularly (once a week, for example), because if you update from time ago you will get lots of config files listed when you run etc-update, and it can be a boring task (anyway there is no other trouble, from my experience). |
|
Back to top |
|
|
sp33dy n00b
Joined: 17 Apr 2003 Posts: 60
|
Posted: Fri Feb 18, 2005 10:17 am Post subject: |
|
|
Thanks for the tips, I will take the plunge and update.
sp33dy _________________ An Eye For An Eye Makes The Whole World Blind
-Ghandi |
|
Back to top |
|
|
mathfeel l33t
Joined: 03 Aug 2004 Posts: 700
|
Posted: Fri Feb 18, 2005 10:33 am Post subject: |
|
|
texas1emt wrote: |
As far as automatically updating it via some method like cron, I'd recommend against it as much as I can! Sometimes there's packages you won't want to update or some packages might have issues and clash with something else you have installed. I'd recommend updating your world files as much as you like. I sit down and do it manually every 2-3 days (sometimes every day) with 'emerge -Dvup world' and then 'emerge -Dvu world'. |
Suppose I did 'emerge -pvuD world' and it listed packages that it will update, but there this one package out of say 30 that I don't want updated (more specifically, I have splashutils emerged, for some reason it wants to emerge new (not update) bootsplash). How do I exclude one package from 'emerge -vuD world'? |
|
Back to top |
|
|
mikegpitt Advocate
Joined: 22 May 2004 Posts: 3224
|
Posted: Fri Feb 18, 2005 6:12 pm Post subject: |
|
|
mathfeel wrote: |
Suppose I did 'emerge -pvuD world' and it listed packages that it will update, but there this one package out of say 30 that I don't want updated (more specifically, I have splashutils emerged, for some reason it wants to emerge new (not update) bootsplash). How do I exclude one package from 'emerge -vuD world'? |
Create the directory /etc/portage if you have not done so yet. Then create the file, /etc/portage/package.mask . In that file put the package you want to be masked.
Here is mine, which may give you an idea of what to do. Note: the lines with a # are lines I commented out, since I didn't want them masked anymore. Also note you can mask a specific package, any package greater or equal to that package version, or all versions of the package (all 3 ways are in the example).
Code: | >=sys-apps/hotplug-20040923
#>=media-gfx/gimp-2.0.0
>=sys-kernel/gentoo-dev-sources-2.6
>=sys-kernel/gentoo-sources-2.4
media-sound/alsa-driver
=media-video/nvidia-kernel-1.0.6629-r1
=media-video/nvidia-glx-1.0.6629-r1
#=x11-terms/aterm-0.4.2-r11 |
|
|
Back to top |
|
|
mathfeel l33t
Joined: 03 Aug 2004 Posts: 700
|
Posted: Fri Feb 18, 2005 6:18 pm Post subject: |
|
|
mikegpitt wrote: |
Create the directory /etc/portage if you have not done so yet. Then create the file, /etc/portage/package.mask . In that file put the package you want to be masked.
Here is mine, which may give you an idea of what to do. Note: the lines with a # are lines I commented out, since I didn't want them masked anymore. Also note you can mask a specific package, any package greater or equal to that package version, or all versions of the package (all 3 ways are in the example).
Code: | >=sys-apps/hotplug-20040923
#>=media-gfx/gimp-2.0.0
>=sys-kernel/gentoo-dev-sources-2.6
>=sys-kernel/gentoo-sources-2.4
media-sound/alsa-driver
=media-video/nvidia-kernel-1.0.6629-r1
=media-video/nvidia-glx-1.0.6629-r1
#=x11-terms/aterm-0.4.2-r11 |
|
Thanks. I had the mask file. Turn out, there was one other package that dep. on it. So I unmerge that package. All's good. |
|
Back to top |
|
|
|