dnf
'@anaconda' means that the package was installed by the Anaconda installer.
-
dnf upgrade --repo update* --exclude kernel*
- 下载源码rpm包
dnf download --source crun
- 查看使用的mirror
dnf download --url glx-utils
- download specific architecture, 与包名要完全对应, 可先使用dnf info glx-utils查看可以architecture
dnf download --arch x86_64 glx-utils
- download debuginfo debugsource
dnf download --debuginfo crun dnf download --debugsource glx-utils
- find all versions
dnf repoquery --show-duplicates docker-ce
- show only results that owns FILE
dnf repoquery --file /etc/xattr.conf
- don't install weak dependencies
dnf install --setopt=install_weak_deps=false --best langpacks-zh_CN
/etc/dnf/dnf.conf
[main] gpgcheck=True installonly_limit=3 clean_requirements_on_remove=True best=False skip_if_unavailable=True excludepkgs=kernel*
repo:
[RepositoryID] name= $releaserver - $arch - $basearch baseurl=url://server1/path/to/repository/ url://server2/path/to/repository/ url://server3/path/to/repository/ enabled=1|0 # default 1 gpgcheck=1|0 # default 1 cost=1000 # default 1000 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch failovermethod=roundrobin|priority metadata_expire=7d type=rpm skip_if_unavailable=False
dnf repolist [all|enabled|disabled] dnf list all [glob_exp] dnf list available [glob_exp] list available and installed dnf list updates [glob_exp] list updates available in dnf repository dnf list installed [glob_exp] list installed packeges dnf list extras [glob_exp] list installed but are not available in dnf repository dnf reinstall packges dnf check-update [glob_exp] dnf clean dnf makecache dnf search [all] string 默认只搜索name和summary含有指定string的包 dnf repoquery --deplist package dnf history subcommand --nogpgcheck --disablerepo= --enablerepo= --noplugins --exclude=packge --skip-broken --disablerepo="*" --enablerepo=epel
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
2022-01-25 Alpine
2022-01-25 Clear file content & command truncate