Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Looking for a kernel upgade script
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
catkfr
Guru
Guru


Joined: 02 Aug 2004
Posts: 300

PostPosted: Wed Apr 04, 2007 1:14 pm    Post subject: Looking for a kernel upgade script Reply with quote

I stumbled upon a script last week in the forums but unfortunately lost track of it and wasn't able to find it again...

This script helps manage kernel packages, avoiding messy emerge -C =gentoo-sources-2.xx-ry and cleaning /usr/src directory and maybe other directories as well (in /lib maybe?).

Has anyone seen this script or any other script that could help do this?

Thanks,

catkfr
Back to top
View user's profile Send private message
HeXiLeD
Veteran
Veteran


Joined: 20 Aug 2005
Posts: 1159
Location: Online

PostPosted: Wed Apr 04, 2007 2:37 pm    Post subject: Reply with quote

well.. your question is not very explicit but lets see if this or something like this answers your question.

Code:
*  sys-kernel/module-rebuild
      Latest version available: 0.5
      Latest version installed: 0.5
      Size of files: 0 kB
      Homepage:      http://www.gentoo.org/
      Description:   A utility to rebuild any kernel modules which you have installed.
      License:       GPL-2


Code:
# nano kernel-script

cd /usr/src/linux ;
make clean ;
make menuconfig ;
make ;
make modules_install ;
module-rebuild rebuild ;
mount /boot ;
cp arch/x86_64/boot/bzImage /boot/kernel-<version-here>


save and exit.

Code:
# chmod +x kernel-script


run like this
Code:
# ./kernel-script


this " script " can be made more or less fancy, with more or less options.
Its up to the user
_________________
Do you hear the sound of inevitability?
With age, comes great grumpiness and that, was 20 years ago...

CertFP: becbbd161d5a5c31de3c45171b77bf710911db29 / d985d21f89fe2977b593c4d381a1a86802e62990d9328d893db76d59f9935244
Back to top
View user's profile Send private message
catkfr
Guru
Guru


Joined: 02 Aug 2004
Posts: 300

PostPosted: Wed Apr 04, 2007 3:16 pm    Post subject: Reply with quote

Actually, the idea is more that if you do regular updates, then your /usr/src directory will be full with tons directories with many versions of gentoo sources that you will then have do manually remove. Plus, if you compile a given kernel, the removal through portage leaves the directory behind. This script helped you keep the kernel sources situation under control.
Back to top
View user's profile Send private message
HeXiLeD
Veteran
Veteran


Joined: 20 Aug 2005
Posts: 1159
Location: Online

PostPosted: Fri Apr 06, 2007 1:24 am    Post subject: Reply with quote

This might help with something:
http://gentoo-wiki.com/TIP_Exclude_categories_from_emerge_sync
_________________
Do you hear the sound of inevitability?
With age, comes great grumpiness and that, was 20 years ago...

CertFP: becbbd161d5a5c31de3c45171b77bf710911db29 / d985d21f89fe2977b593c4d381a1a86802e62990d9328d893db76d59f9935244
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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