How to manually upgrade Gentoo and its kernels

  

Usually Gentoo systems have their own upgrades. If the system cannot be upgraded automatically, how do you manually upgrade the system? How to upgrade the kernel? The following small series will introduce you to the Gentoo upgrade system and kernel method, I hope to help everyone.

a kernel upgrade

1. # emerge --sync //upgrade the entire portage directory can also write scripts

2. #emerge -s sources emerge -avq gentoo-sources

[ebuild NS ] sys-kernel/gentoo-sources-3.10.4 [3.9.0] USE=“-build -deblob -symlink”

Compile the kernel

3.# cd /usr/src/linux-3.10.4-gentoo

#make -j5 menuconfig Compiling the kernel no longer goes into details. Make -j5 && make install modules_install

Modify grub to enable the new kernel.

vim /boot/grub/grub.conf

123456 default 1

timeout 5

splashimage=(hd0,0)/boot/grub/Splash.xpm.gz

title Gentoo 3.10.4

root (hd0,0)

kernel /boot/vmlinuz-3.10.4-gentoo ro root=/dev /sda1 rootfstype=ext4 quiet

Second, the system upgrade.

4.#emerge -avq portage //If it is not the latest portage, you need to follow the prompts to do this

5.#emerge -avq python //If it is not the latest python, you need to press Prompt to do this

6.#/usr/sbin/update-python or python-updater //Update python configuration //Execute this operation after executing python

7.#emerge -avquDN world //Rebuild the entire system according to the package under the /var/lib/portage/world file

Parameter Description: --ask (-a) Controls Portage to display a list of packages it wants to update. And let you decide whether to continue to update

--verbose (-v) Output a complete file list on the screen

--update (-u) The best version of the update package

--deep (-D) Update each package in the system

--newuse (-N) After the USE flag is changed, let Portage check if the change of the USE flag causes

Need to install a new package or recompile an existing package

8.#emerge -av --depclean //Clear unwanted (isolated Package

9.#revdep-rebuild //A software in the gentoolkit package to check if the dependencies of the system are met, and automatically install packages that do not satisfy the relationship

10. #perl-cleaner --all -- -avq //Check and fix the perl related modules and files

11.#dispatch-conf //Update the system configuration file

12.eselect news read all //View the prompt message

#emerge -e world //Recompile the entire system locally. This step is not needed.

The above is a description of Gentoo's method of upgrading the system and kernel. With the method described in this article, you can upgrade Gentoo and its kernel to the latest version, but the latest version may have bugs and cannot be blindly upgraded.

Copyright © Windows knowledge All Rights Reserved