zoukankan      html  css  js  c++  java
  • Linux

    背景

    [root@poloyy ~]# yum makecache fast
    usage: yum makecache [-c [config file]] [-q] [-v] [--version]
                         [--installroot [path]] [--nodocs] [--noplugins]
                         [--enableplugin [plugin]] [--disableplugin [plugin]]
                         [--releasever RELEASEVER] [--setopt SETOPTS]
                         [--skip-broken] [-h] [--allowerasing] [-b | --nobest]
                         [-C] [-R [minutes]] [-d [debug level]] [--debugsolver]
                         [--showduplicates] [-e ERRORLEVEL] [--obsoletes]
                         [--rpmverbosity [debug level name]] [-y] [--assumeno]
                         [--enablerepo [repo]] [--disablerepo [repo] | --repo
                         [repo]] [--enable | --disable] [-x [package]]
                         [--disableexcludes [repo]] [--repofrompath [repo,path]]
                         [--noautoremove] [--nogpgcheck] [--color COLOR]
                         [--refresh] [-4] [-6] [--destdir DESTDIR]
                         [--downloadonly] [--comment COMMENT] [--bugfix]
                         [--enhancement] [--newpackage] [--security]
                         [--advisory ADVISORY] [--bz BUGZILLA] [--cve CVES]
                         [--sec-severity {Critical,Important,Moderate,Low}]
                         [--forcearch ARCH] [--timer]
    yum makecache: error: argument timer: invalid choice: 'fast' (choose from 'timer')

    根因

    yum makecache fast 是 centos 7 下的命令,并不适用 8

    解决方法

    执行下面的命令即可

    dnf makecache
     
  • 相关阅读:
    什么是缓存?
    什么是反射?
    Nginx配置文件详解
    数据库插入,修改出现中文乱码解决办法
    hadoop的HA机制+zookeeper
    cascading--wordcount
    心情3
    完成用户登录注册功能
    感慨1
    Swing程序设计-初级
  • 原文地址:https://www.cnblogs.com/poloyy/p/15488929.html
Copyright © 2011-2022 走看看