• 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
     
  • 相关阅读:
    redis相关
    Ubuntu安装之python开发
    Shell编程实战
    saltstack高效运维
    docker网络
    docker入门
    python学习博客地址集合。。。
    vue+uwsgi+nginx部署路飞学城
    部署你的CRM程序
    Java Netty教程(目录)
  • 原文地址:https://www.cnblogs.com/poloyy/p/15488929.html
Copyright © 2020-2023  润新知