• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

emerge Command Examples in Gentoo Linux

by admin

The “emerge” command in Gentoo Linux is the main command-line utility for managing software packages and dependencies. It is the command-line interface to the Portage package manager, which is the default package manager for Gentoo Linux.

The “emerge” command can be used to install, update, and remove software packages, as well as to manage package dependencies. It can also be used to query the current state of installed packages and search for available packages in the Gentoo package repositories.

emerge Command Examples

1. Synchronize all packages:

# emerge --sync

2. Update all packages, including dependencies:

# emerge -uDNav @world

3. Resume a failed updated, skipping the failing package:

# emerge --resume --skipfirst

4. Install a new package, with confirmation:

# emerge -av package_name

5. Remove a package, with confirmation:

# emerge -Cav package_name

6. Remove orphaned packages (that were installed only as dependencies):

# emerge -avc

7. Search the package database for a keyword:

# emerge -S keyword

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to enable SFTP Logging without chroot in CentOS/RHEL
  2. bpftrace Command Examples in Linux
  3. rm: cannot remove ‘doc/by-app’: Function not implemented (CentOS/RHEL 7)
  4. iwconfig Command Examples in Linux
  5. Medusa: command not found
  6. CentOS/RHEL 6 Kernel Panic – “Out of memory” kernel parameter panic_on_oom is enabled
  7. CentOS / RHEL : How to remove a mirror with mdadm
  8. How to uninstall ssh software package from Ubuntu
  9. ascii Command Examples in Linux
  10. lastlog: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • nixos-rebuild Command Examples in Linux
  • nixos-option: Command Examples in Linux
  • nixos-container : Command Examples in Linux
  • nitrogen Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright