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
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.
Emerge-AVC <packagename>
Delete the current package, display detailed information, and ask before deletion.
# Emerge-C
# Emerge -- sync
Or
# Emerge-webrsync # download the Snapshot package to complete sync
# Emerge-AVU xxx
# Emerge-AVU 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.
# 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