Gentoo Kernel and system upgrades

Source: Internet
Author: User
Tags linux

A. Kernel upgrades

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"

Compiling the kernel

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

#make-j5 Menuconfig Compile kernel no longer repeat. Make-j5 && make install Modules_install

Modify grub to enable the new kernel.

Vim/boot/grub/grub.conf

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

Two. System upgrade.

4. #emerge-AVQ Portage//If not the latest portage, you need to follow the prompts

5. #emerge-avq python//If not the latest Python, you need to follow the prompts

6.#/usr/sbin/update-python or Python-updater//update Python configuration//Perform this operation after emerge Python

7. #emerge-AVQUDN World/To reconstruct the entire system according to the package under the/var/lib/portage/world file

Parameter description:--ask (-a) control portage display the list of packages that it will update, and let you decide whether to continue the update

--verbose (-V) Prints the complete list of files on the screen

--update (-u) update package best version

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

--newuse (-N) use mark changes to enable Portage to check whether changes to the use Mark cause

Need to install a new package or recompile an existing package

8. #emerge-av--depclean//clear unwanted (Isolated) packages

9. #revdep-rebuild//gentoolkit package inside a software to check whether the system dependencies are met, automatic installation does not meet the relationship of the package

8. #perl-cleaner--all---avq//check and revise all Perl-related modules and files

#dispatch-conf//Update system configuration file

11.eselect News Read all//view prompt message

Recompile the entire system #emerge-e World/Local. This step is not needed.

#dispatch-conf or Etc-update//update system configuration Files!!! No changes made

This article is from the "Running" blog, please be sure to keep this source http://dg123.blog.51cto.com/4750342/1263175

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.