Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Update Gentoo FAIL
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
gentian
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2012
Posts: 113

PostPosted: Mon Jul 02, 2012 8:34 am    Post subject: Update Gentoo FAIL Reply with quote

Hi all,

I'm just trying to grab a grasp of the Gentoo updating process.. I am not using Genkernel and I was wondering If I need to recompile the newer version kernel in order to make a full system ugrade, cause when I did:
Code:
emerge --sync, emerge --update --deep --with-bdeps=y --newuse world

I ended up with a broken system and the compilation process didn't go through.

Could someone post the proper steps to upgrade/update a Gentoo system?

Thanks!
Back to top
View user's profile Send private message
anb.clarke
n00b
n00b


Joined: 05 Apr 2006
Posts: 31

PostPosted: Mon Jul 02, 2012 8:43 am    Post subject: Reply with quote

:?

Last edited by anb.clarke on Mon Jul 02, 2012 10:33 am; edited 5 times in total
Back to top
View user's profile Send private message
gentian
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2012
Posts: 113

PostPosted: Mon Jul 02, 2012 8:46 am    Post subject: Reply with quote

anb.clarke wrote:
Specifically for the kernel;

http://www.gentoo.org/doc/en/kernel-upgrade.xml

More generally;

http://www.gentoo.org/doc/en/


That doesn't explain the steps.. Basically my question is. Do I have to upgrade the Kernel each time I'm performing a full system update in order to avoid any issues?
Back to top
View user's profile Send private message
anb.clarke
n00b
n00b


Joined: 05 Apr 2006
Posts: 31

PostPosted: Mon Jul 02, 2012 8:58 am    Post subject: Reply with quote

:?

Last edited by anb.clarke on Mon Jul 02, 2012 10:34 am; edited 3 times in total
Back to top
View user's profile Send private message
gentian
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2012
Posts: 113

PostPosted: Mon Jul 02, 2012 9:03 am    Post subject: Reply with quote

anb.clarke wrote:
:) Depends on the situation : if the upgrade includes system updates, kernel update then yes - i'd say so. Otherwise no. Go back one step and check my routine...

Requires:
Code:
gentoo > eix module-rebuild
[I] sys-kernel/module-rebuild
     Available versions:  0.5 (~)0.6 (~)0.7
     Installed versions:  0.7(03:17:15 01/06/12)
     Homepage:            http://www.gentoo.org/
     Description:         A utility to rebuild any kernel modules which you have installed


I dont want to mess too much with full system upgrades. I usually just want to update packages due to security issues.. Is there any way to just update the security needed packages and not all the system?
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Mon Jul 02, 2012 9:04 am    Post subject: Reply with quote

gentian wrote:
Do I have to upgrade the Kernel each time I'm performing a full system update in order to avoid any issues?

No, you don't have to upgrade and recompile your kernel each time on a full update. Occasionally there may be a package in your updates that requires a certain kernel option, and you will get a message about that.

Also, if you have an update failure, it is very helpful to post the exact errors you get.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
anb.clarke
n00b
n00b


Joined: 05 Apr 2006
Posts: 31

PostPosted: Mon Jul 02, 2012 9:06 am    Post subject: Reply with quote

:?

Last edited by anb.clarke on Mon Jul 02, 2012 10:34 am; edited 3 times in total
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Mon Jul 02, 2012 9:12 am    Post subject: Reply with quote

gentian wrote:
I dont want to mess too much with full system upgrades. I usually just want to update packages due to security issues.. Is there any way to just update the security needed packages and not all the system?

If you have a recent enough portage, then: emerge -a @security

But, Gentoo is a rolling release distro. So it is recommended to do a full upgrade regularly (at least once a month). The longer you wait, the more likely it will be you get problems on updating your system.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
gentian
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2012
Posts: 113

PostPosted: Mon Jul 02, 2012 9:13 am    Post subject: Reply with quote

yngwin wrote:
gentian wrote:
I dont want to mess too much with full system upgrades. I usually just want to update packages due to security issues.. Is there any way to just update the security needed packages and not all the system?

If you have a recent enough portage, then: emerge -a @security

Thanks for the tip!
Back to top
View user's profile Send private message
anb.clarke
n00b
n00b


Joined: 05 Apr 2006
Posts: 31

PostPosted: Mon Jul 02, 2012 9:16 am    Post subject: Reply with quote

:?

Last edited by anb.clarke on Mon Jul 02, 2012 10:34 am; edited 1 time in total
Back to top
View user's profile Send private message
gentian
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2012
Posts: 113

PostPosted: Mon Jul 02, 2012 9:17 am    Post subject: Reply with quote

yngwin wrote:
But, Gentoo is a rolling release distro. So it is recommended to do a full upgrade regularly (at least once a month). The longer you wait, the more likely it will be you get problems on updating your system.

Does this mean that I have to upgrade my Kernel every month too?
Back to top
View user's profile Send private message
anb.clarke
n00b
n00b


Joined: 05 Apr 2006
Posts: 31

PostPosted: Mon Jul 02, 2012 9:21 am    Post subject: Reply with quote

:?

Last edited by anb.clarke on Mon Jul 02, 2012 10:35 am; edited 1 time in total
Back to top
View user's profile Send private message
gentian
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2012
Posts: 113

PostPosted: Mon Jul 02, 2012 9:22 am    Post subject: Reply with quote

anb.clarke wrote:
http://www.gentoo.org/doc/en/kernel-upgrade.xml

Quote:
2. Why upgrade the kernel?

Generally, upgrading from one minor kernel release to the next won't bring any major differences. There are several reasons to upgrade the kernel. One is to take advantage of a specific new feature or driver; another is to be protected against a security vulnerability, or just to maintain an up-to-date and healthy system.

Even if you choose not to update to every new kernel revision, it is recommended that you at least upgrade from time to time. It is strongly recommended that you immediately upgrade to a new kernel if that new release solves a security problem. Good idea, but Gentoo/Linux is about choices so you upgrade when you want to...

So every Month, PAIN..
Back to top
View user's profile Send private message
anb.clarke
n00b
n00b


Joined: 05 Apr 2006
Posts: 31

PostPosted: Mon Jul 02, 2012 9:25 am    Post subject: Reply with quote

:?

Last edited by anb.clarke on Mon Jul 02, 2012 10:36 am; edited 1 time in total
Back to top
View user's profile Send private message
gentian
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2012
Posts: 113

PostPosted: Mon Jul 02, 2012 9:26 am    Post subject: Reply with quote

anb.clarke wrote:
Do you want a script so you can do it from a terminal?

It takes less than 1 min on my system!! No Pain!

9GAG. Yes please!!
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Mon Jul 02, 2012 10:44 am    Post subject: Reply with quote

gentian wrote:
yngwin wrote:
But, Gentoo is a rolling release distro. So it is recommended to do a full upgrade regularly (at least once a month). The longer you wait, the more likely it will be you get problems on updating your system.

Does this mean that I have to upgrade my Kernel every month too?

No, not necessarily.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
gentian
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2012
Posts: 113

PostPosted: Mon Jul 02, 2012 10:47 am    Post subject: Reply with quote

yngwin wrote:
gentian wrote:
yngwin wrote:
But, Gentoo is a rolling release distro. So it is recommended to do a full upgrade regularly (at least once a month). The longer you wait, the more likely it will be you get problems on updating your system.

Does this mean that I have to upgrade my Kernel every month too?

No, not necessarily.

Is it possible to exclude system updates that are related to kernel upgrades?
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Mon Jul 02, 2012 1:05 pm    Post subject: Reply with quote

no, but you can froze your current kernel version in world so portage will always keep it, you will get other kernel update, but won't have to care about them until you want change it
and before you ask it's easy, instead of
emerge gentoo-sources
you use
emerge gentoo-sources-versionyouwantkeep
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Tue Jul 03, 2012 12:16 am    Post subject: Reply with quote

Gentian, I update mine every week. Small updates are easier to handle and quicker to execute. I set the number of processors in make.conf to one less than I have and usually surf the web while the system is updating in the background.

This doesn't always work. This weekend I had 115 updates! The dev's must have marked an awful lot of versions as stable.

anb.clarke, are you erasing your posts after entering them? They are all blank.
Back to top
View user's profile Send private message
john-doe
Tux's lil' helper
Tux's lil' helper


Joined: 15 May 2012
Posts: 123

PostPosted: Tue Jul 03, 2012 12:35 am    Post subject: Reply with quote

Tony0945 wrote:


anb.clarke, are you erasing your posts after entering them? They are all blank.


What a madness? maybe bipolar the guy?
Back to top
View user's profile Send private message
Thistled
Guru
Guru


Joined: 06 Jan 2011
Posts: 572
Location: Scotland

PostPosted: Tue Jul 03, 2012 2:18 pm    Post subject: Reply with quote

Or perhaps he has a hidden agenda. :lol:
Or just shy.
_________________
Whatever you do, do it properly!
Back to top
View user's profile Send private message
gentian
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2012
Posts: 113

PostPosted: Wed Jul 04, 2012 7:47 pm    Post subject: Reply with quote

Tony0945 wrote:
Gentian, I update mine every week. Small updates are easier to handle and quicker to execute. I set the number of processors in make.conf to one less than I have and usually surf the web while the system is updating in the background.

This doesn't always work. This weekend I had 115 updates! The dev's must have marked an awful lot of versions as stable.

anb.clarke, are you erasing your posts after entering them? They are all blank.

Ok.. Is this the proper way of upgrading/updating things?
Code:
eselect kernel list

eselect kernel set

cp /usr/src/linux-$(uname -r)/.config /usr/src/linux/

cd /usr/src/linux

make oldconfig

make modules_prepare

module-rebuild populate

module-rebuild rebuild

make && make modules_install

emerge --update --deep --with-bdeps=y --newuse world
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Wed Jul 04, 2012 8:46 pm    Post subject: Reply with quote

You should build new kernels once in a while, but you do not need to update it every release. What I've found recently is that it's mostly

- closed source drivers
- udev (that add new features that require the kernel to track)
- and other special tools tied to versions of the kernel, which is not unlike the closed source driver issue.

that can force a particular kernel to be used. My server which I try to not build kernels for is still running an ancient 2.6.38 but still running latest versions of stable portage packages, thankfully there haven't been udev enhancements that require newer kernel versions.

I should update that kernel anyway - mostly for security fixes.

And agreed (mostly from past experience), update your machines semi frequently - the longer between updates, the more likely you'll run into strange dependency issues. Then again, the more USE flags in packages.use also can cause this too.

Note: You should reboot your systems once in a while, not wanting to reboot is not an excuse for not wanting to build new kernels. Picking up security changes should be the prime reason for building kernels, and it's up to the user to judge this...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Wed Jul 04, 2012 10:27 pm    Post subject: Reply with quote

Quote:
Ok.. Is this the proper way of upgrading/updating things?

You also have to manually update /boot/grub/grub.conf if you do it that way. I haven't done it the "roll your own" way for a long long time. I find genkernel to be a most useful tool. Using the menuconfig option you can customize and trim to your hearts content. You can start with pappy's seeds or take the install disk configuration and pare it down.

Whether with genkernel or roll your own, the option to create /proc/config.gz that I referred to upthread is enable from menuconfig by selecting "General Setup" and selecting "Kernel .config support". Whether or not you use my script, /proc/config.gz can be very useful in debugging and posting to this forum.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum