View previous topic :: View next topic |
Author |
Message |
catkfr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 02 Aug 2004 Posts: 300
|
Posted: Wed Apr 04, 2007 1:14 pm Post subject: Looking for a kernel upgade script |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
HeXiLeD Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/151607204746643085a95a8.jpg)
Joined: 20 Aug 2005 Posts: 1159 Location: Online
|
Posted: Wed Apr 04, 2007 2:37 pm Post subject: |
|
|
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
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 |
|
![](templates/gentoo/images/spacer.gif) |
catkfr Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 02 Aug 2004 Posts: 300
|
Posted: Wed Apr 04, 2007 3:16 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
HeXiLeD Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/151607204746643085a95a8.jpg)
Joined: 20 Aug 2005 Posts: 1159 Location: Online
|
Posted: Fri Apr 06, 2007 1:24 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|