Gentoo software management-common emerge commands

Source: Internet
Author: User

InteractionInquiry

-- Ask (-)

Print Information

-- Verbose (-v) # runs in detail mode. It can print the GNU error message and display the use flags used for false execution.

-- Version (-v) # displays the emerge version. Cannot be shared with other options. The name and format are standard.

View dependency

-- Pretend (-P)

-PV # view the file containing Doc use flag to see if the file has been downloaded.

Query the software package name

-- Search (-S)

Description of the query package:

-- Searchdesc (-S)

View software update records

-- Changelog (-l) # used with -- pretend to display all change records for the updated suite.

Only download the source code (and the dependent code)

-- Fetchonly (-f)

-FP # view the source code

Use locally compiled pre-compiled packages.

-- Usepkg (k) # use the pre-compiled package (from $ pkgdir). If yes, you can skip compiling.

Use only locally compiled pre-compiled packagesOtherwise, do not install(No compilation. All dependent packages are installed in binary)

-- Usepkgonly (-K)


Update Software

-- Update (-u) # update the suite to the latest version

-- Upgradeonly (-u) # update the suite, but do not update the suite that will cause the version number to decrease

Uninstall Software

-- Unmerge (-C)

Remove software that does not affect system functions (clean up the system)

-- Clean (-C)

Detach a dependency that can be removed (in-depth cleanup)

-- Depclean



Emerge common Parameter Combinations

  • Compile and reinstall the installation package

Emerge-AVT <packagename>

Installation commands with detailed information, tree dependency display, and interactive confirmation instructions. Note that the use mark after the package information is output to the screen when you confirm the indication, mainly including red and blue use tags.

  • Delete the installation package

Emerge-AVC <packagename>

Delete the current package, display detailed information, and ask before deletion.

  • Cleaning System

# Emerge-C

  • Update the portage tree

# Emerge -- sync

Or

# Emerge-webrsync # download the Snapshot package to complete sync

  • Upgrade software

# Emerge-AVU xxx

  • Upgrade System Software

# Emerge-AVU System

  • Upgrade the entire system

After the portage tree is updated,Update System:

# Emerge -- update -- Ask world

-- Deep (-d) is updated together with dependency

-- With-bdeps = y compile dependency update

-- Newuse (-N) is updated based on the changed use.

  • Remove an isolated dependent Software Package

# Emerge -- update -- deep -- newuse world

# Emerge -- depclean

# Revdep-rebuild recompile the applications that have just been dynamically connected to the removed package

The revdep-rebuild tool is provided by the gentoolkit package. Do not forget to use emerge before using it.


My system upgrade process:

# Emerge -- Sync // update the portage tree

# Emerge-avtudn world // upgrade the entire system

# Emerge-AVT -- depclean // exclude unnecessary packages

// If necessary, update the configuration file.

# Revdep-rebuild // rebuild the Dynamic Link

# Env-Update & source/etc/profile // update environment variables if necessary


This article from the "blog: Gu zhuwang", please be sure to keep this source http://aceking.blog.51cto.com/3681913/1540003

Related Article

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.