1. kernel upgrade
1. # emerge -- sync // You can also write scripts to upgrade the entire portage directory.
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: Compile the kernel. Make-j5 & make install modules_install
Modify grub to enable the new kernel.
Vim/boot/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
Ii. system upgrade.
4. # emerge-avq portage // if it is not the latest portage, follow the prompts to perform this operation.
5. # emerge-avq python // if it is not the latest python, follow the prompts to perform this operation.
6. #/usr/sbin/update-python or python-updater // update python configuration // execute this operation after emerge python is executed
7. # emerge-avquDN world // rebuild the entire system according to the packages in the/var/lib/portage/world File
Parameter description: -- ask (-a) controls Portage to display the list of packages to be updated, and allows you to decide whether to continue the update.
-- Verbose (-v) outputs the complete file list on the screen
-- Update (-u) updates the optimal package version
-- Deep (-D) Updates each software package in the system
-- After the newuse (-N) USE tag is changed, the Portage should be checked to see if the change in the USE tag has caused
You need to install a new software package or re-compile the existing package.
8. # emerge-av -- depclean // clear unnecessary (isolated) software packages
9. # revdep-rebuild // a software in the gentoolkit package is used to check whether all dependencies of the system are satisfied. The package that does not meet the requirements is automatically installed.
10. # perl-cleaner -- all ---avq // check and correct 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 required for the moment.
DHCP lab notes under Gentoo
Build a LAMP environment using Gentoo
How to fix the failure of Grub boot in Gentoo Linux x86 quick installation guide