install dnf on centos 7 #20

Closed
opened 3 years ago by rbsetiawan · 0 comments
Owner

install dnf on centos 7

  • update centos
yum install epel-release
  • get repository dnf
wget http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64//dnf-0.6.4-2.sdl7.noarch.rpm
wget http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64/dnf-conf-0.6.4-2.sdl7.noarch.rpm
wget http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64/python-dnf-0.6.4-2.sdl7.noarch.rpm
  • install dnf

    • custome command
    yum install dnf-0.6.4-2.sdl7.noarch.rpm dnf-conf-0.6.4-2.sdl7.noarch.rpm python-dnf-0.6.4-2.sdl7.noarch.rpm
    
    • default command
    yum install dnf
    
  • test dnf

dnf help
  • output dnf help

    [root@linux ~]# dnf help
    usage: dnf [options] COMMAND
    
    List of Main Commands:
    
    alias                     List or create command aliases
    autoremove                remove all unneeded packages that were originally installed as dependencies
    check                     check for problems in the packagedb
    check-update              check for available package upgrades
    clean                     remove cached data
    deplist                   List package's dependencies and what packages provide them
    distro-sync               synchronize installed packages to the latest available versions
    downgrade                 Downgrade a package
    group                     display, or use, the groups information
    help                      display a helpful usage message
    history                   display, or use, the transaction history
    info                      display details about a package or group of packages
    install                   install a package or packages on your system
    list                      list a package or groups of packages
    makecache                 generate the metadata cache
    mark                      mark or unmark installed packages as installed by user.
    module                    Interact with Modules.
    provides                  find what package provides the given value
    reinstall                 reinstall a package
    remove                    remove a package or packages from your system
    repolist                  display the configured software repositories
    repoquery                 search for packages matching keyword
    repository-packages       run commands on top of all packages in given repository
    search                    search package details for the given string
    shell                     run an interactive DNF shell
    swap                      run an interactive dnf mod for remove and install one spec
    updateinfo                display advisories about packages
    upgrade                   upgrade a package or packages on your system
    upgrade-minimal           upgrade, but only 'newest' package match which fixes a problem that affects your system
    
    Optional arguments:
    	-c [config file], --config [config file]
    	                    config file location
    	-q, --quiet           quiet operation
    	-v, --verbose         verbose operation
    	--version             show DNF version and exit
    	--installroot [path]  set install root
    	--nodocs              do not install documentations
    	--noplugins           disable all plugins
    	--enableplugin [plugin]
    	                    enable plugins by name
    	--disableplugin [plugin]
    	                    disable plugins by name
    	--releasever RELEASEVER
    	                    override the value of $releasever in config and repo
    	                    files
    	--setopt SETOPTS      set arbitrary config and repo options
    	--skip-broken         resolve depsolve problems by skipping packages
    	-h, --help, --help-cmd
    	                    show command help
    	--allowerasing        allow erasing of installed packages to resolve
    	                    dependencies
    	-b, --best            try the best available package versions in
    	                    transactions.
    	-C, --cacheonly       run entirely from system cache, don't update cache
    	-R [minutes], --randomwait [minutes]
    	                    maximum command wait time
    	-d [debug level], --debuglevel [debug level]
    	                    debugging output level
    	--debugsolver         dumps detailed solving results into files
    	--showduplicates      show duplicates, in repos, in list/search commands
    	-e ERRORLEVEL, --errorlevel ERRORLEVEL
    	                    error output level
    	--obsoletes           enables dnf's obsoletes processing logic for upgrade
    	                    or display capabilities that the package obsoletes for
    	                    info, list and repoquery
    	--rpmverbosity [debug level name]
    	                    debugging output level for rpm
    	-y, --assumeyes       automatically answer yes for all questions
    	--assumeno            automatically answer no for all questions
    	--enablerepo [repo]
    	--disablerepo [repo]
    	--repo [repo], --repoid [repo]
    	                    enable just specific repositories by an id or a glob,
    	                    can be specified multiple times
    	--enable, --set-enabled
    	                    enable repos with config-manager command
    	                    (automatically saves)
    	--disable, --set-disabled
    	                    disable repos with config-manager command
    	                    (automatically saves)
    	-x [package], --exclude [package], --excludepkgs [package]
    	                    exclude packages by name or glob
    	--disableexcludes [repo], --disableexcludepkgs [repo]
    	                    disable excludepkgs
    	--repofrompath [repo,path]
    	                    label and path to additional repository, can be
    	                    specified multiple times.
    	--noautoremove        disable removal of dependencies that are no longer
    	                    used
    	--nogpgcheck          disable gpg signature checking (if RPM policy allows)
    	--color COLOR         control whether color is used
    	--refresh             set metadata as expired before running the command
    	-4                    resolve to IPv4 addresses only
    	-6                    resolve to IPv6 addresses only
    	--destdir DESTDIR, --downloaddir DESTDIR
    	                    set directory to copy packages to
    	--downloadonly        only download packages
    	--comment COMMENT     add a comment to transaction
    	--bugfix              Include bugfix relevant packages, in updates
    	--enhancement         Include enhancement relevant packages, in updates
    	--newpackage          Include newpackage relevant packages, in updates
    	--security            Include security relevant packages, in updates
    	--advisory ADVISORY, --advisories ADVISORY
    	                    Include packages needed to fix the given advisory, in
    	                    updates
    	--bzs BUGZILLA        Include packages needed to fix the given BZ, in
    	                    updates
    	--cves CVES           Include packages needed to fix the given CVE, in
    	                    updates
    	--sec-severity {Critical,Important,Moderate,Low}, --secseverity {Critical,Important,Moderate,Low}
    	                    Include security relevant packages matching the
    	                    severity, in updates
    	--forcearch ARCH      Force the use of an architecture
    [root@linux ~]# 
    
    
    
    
    
    
    

redrensi

# install dnf on centos 7 - update centos ``` yum install epel-release ``` - get repository dnf ``` wget http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64//dnf-0.6.4-2.sdl7.noarch.rpm ``` ``` wget http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64/dnf-conf-0.6.4-2.sdl7.noarch.rpm ``` ``` wget http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64/python-dnf-0.6.4-2.sdl7.noarch.rpm ``` - install dnf - custome command ``` yum install dnf-0.6.4-2.sdl7.noarch.rpm dnf-conf-0.6.4-2.sdl7.noarch.rpm python-dnf-0.6.4-2.sdl7.noarch.rpm ``` - default command ``` yum install dnf ``` - test dnf ``` dnf help ``` - output dnf help ``` [root@linux ~]# dnf help usage: dnf [options] COMMAND List of Main Commands: alias List or create command aliases autoremove remove all unneeded packages that were originally installed as dependencies check check for problems in the packagedb check-update check for available package upgrades clean remove cached data deplist List package's dependencies and what packages provide them distro-sync synchronize installed packages to the latest available versions downgrade Downgrade a package group display, or use, the groups information help display a helpful usage message history display, or use, the transaction history info display details about a package or group of packages install install a package or packages on your system list list a package or groups of packages makecache generate the metadata cache mark mark or unmark installed packages as installed by user. module Interact with Modules. provides find what package provides the given value reinstall reinstall a package remove remove a package or packages from your system repolist display the configured software repositories repoquery search for packages matching keyword repository-packages run commands on top of all packages in given repository search search package details for the given string shell run an interactive DNF shell swap run an interactive dnf mod for remove and install one spec updateinfo display advisories about packages upgrade upgrade a package or packages on your system upgrade-minimal upgrade, but only 'newest' package match which fixes a problem that affects your system Optional arguments: -c [config file], --config [config file] config file location -q, --quiet quiet operation -v, --verbose verbose operation --version show DNF version and exit --installroot [path] set install root --nodocs do not install documentations --noplugins disable all plugins --enableplugin [plugin] enable plugins by name --disableplugin [plugin] disable plugins by name --releasever RELEASEVER override the value of $releasever in config and repo files --setopt SETOPTS set arbitrary config and repo options --skip-broken resolve depsolve problems by skipping packages -h, --help, --help-cmd show command help --allowerasing allow erasing of installed packages to resolve dependencies -b, --best try the best available package versions in transactions. -C, --cacheonly run entirely from system cache, don't update cache -R [minutes], --randomwait [minutes] maximum command wait time -d [debug level], --debuglevel [debug level] debugging output level --debugsolver dumps detailed solving results into files --showduplicates show duplicates, in repos, in list/search commands -e ERRORLEVEL, --errorlevel ERRORLEVEL error output level --obsoletes enables dnf's obsoletes processing logic for upgrade or display capabilities that the package obsoletes for info, list and repoquery --rpmverbosity [debug level name] debugging output level for rpm -y, --assumeyes automatically answer yes for all questions --assumeno automatically answer no for all questions --enablerepo [repo] --disablerepo [repo] --repo [repo], --repoid [repo] enable just specific repositories by an id or a glob, can be specified multiple times --enable, --set-enabled enable repos with config-manager command (automatically saves) --disable, --set-disabled disable repos with config-manager command (automatically saves) -x [package], --exclude [package], --excludepkgs [package] exclude packages by name or glob --disableexcludes [repo], --disableexcludepkgs [repo] disable excludepkgs --repofrompath [repo,path] label and path to additional repository, can be specified multiple times. --noautoremove disable removal of dependencies that are no longer used --nogpgcheck disable gpg signature checking (if RPM policy allows) --color COLOR control whether color is used --refresh set metadata as expired before running the command -4 resolve to IPv4 addresses only -6 resolve to IPv6 addresses only --destdir DESTDIR, --downloaddir DESTDIR set directory to copy packages to --downloadonly only download packages --comment COMMENT add a comment to transaction --bugfix Include bugfix relevant packages, in updates --enhancement Include enhancement relevant packages, in updates --newpackage Include newpackage relevant packages, in updates --security Include security relevant packages, in updates --advisory ADVISORY, --advisories ADVISORY Include packages needed to fix the given advisory, in updates --bzs BUGZILLA Include packages needed to fix the given BZ, in updates --cves CVES Include packages needed to fix the given CVE, in updates --sec-severity {Critical,Important,Moderate,Low}, --secseverity {Critical,Important,Moderate,Low} Include security relevant packages matching the severity, in updates --forcearch ARCH Force the use of an architecture [root@linux ~]# ``` # redrensi - [www.interserver.net](https://www.interserver.net/tips/kb/install-dnf-in-rhel-centos-7/):Install DNF in RHEL/CentOS 7 - [ostechnix.com](https://ostechnix.com/install-dnf-centos-7/): How To Install DNF On CentOS 7
rbsetiawan closed this issue 3 years ago
rbsetiawan added the
Linux
label 3 years ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.