当前位置:网站首页>使用AUR下载并安装常用程序
使用AUR下载并安装常用程序
2022-07-03 15:24:00 【秣宇】
提示:文章如有不当之处可联系本人修该或删除。
前言
文章记录了我使用Arch Linux的一些使用方法,关于操作系统的安装不做详细介绍。
提示:以下是本篇文章正文内容,下面案例可供参考
一、AUR是什么?
AUR,即Arch Linux社区用户软件仓库 (Arch User Repository)是一个面对广大Arch用户、以社区为主导的软件仓库。在实际使用中,AUR 似乎很安全,但理论上讲它可以造成一定程度的损害,但前提是你不小心。
警告: AUR 中的软件包是由其他用户编写的,部分软件包可能有风险。使用软件包的风险由您自行承担。
二、使用步骤
1.安装AUR
使用 AUR 的最简单方法是通过 AUR 助手。 AUR 助手 是一个命令行工具(有些还有 GUI),可让你搜索在 AUR 上发布的软件包并安装。
在终端输入下面的代码安装即可。
sudo pacman -S git
sudo git clone https://aur.archlinux.org/yay-git.git
cd yay
makepkg -si
也可不使用AUR助手来安装AUR,感兴趣的小伙伴可以自行上网查找内容。
2.安装AUR软件方法1
代码格式就是yay -S 软件包名
如果不知道软件包名可以到AUR官网搜索关键字来查找
代码如下(示例):
yay -S microsoft-edge-stable-bin #安装 Microsoft Edge
yay -S wps-office-cn wps-office-mui-zh-cn ttf-wps-fonts #安装 WPS Office
yay -S visual-studio-code-bin #安装 Visual Studio Code
3.安装AUR软件方法2
1.从 AUR 下载包含 PKGBUILD 和其他安装文件(比如 systemd 和补丁,通常不是实际代码)的 tar 包。
2.用命令 tar -xvf packagename.tar.gz 解包到一个仅用于编译 AUR 的空闲文件夹。
3.验证 PKGBUILD 和其它相关文件,确保其中不含有恶意代码。
4.在上述文件夹中运行 makepkg -si。命令会自动调用 pacman 解决依赖关系,然后下载代码、编译并打包。然后安装软件包。
打开 AUR 首页 ,在软件包搜索栏输入想要查找的软件包的名称。
选择对应的软件点击进入将软件包源码下载到本地并解压或者选择用git clone下载源码
进入目录
makepkg
例如:
git clone https://aur.archlinux.org/wps-office.git
makepkg -si
4.卸载AUR包
个人建议卸载 AUR 软件时,连所有依赖项和配置文件一起删除。
yay -Rscnu 包名
5.更新/升级AUR软件包
更新 AUR 软件包数据库
yay -Syy
更新 AUR 软件包数据库并升级所有已安装的软件包:
yay -Syyu
6.安装AUR
总结
以上就是今天要讲的内容,本文仅仅简单介绍了AUR的使用。
边栏推荐
- What is one hot encoding? In pytoch, there are two ways to turn label into one hot coding
- Tensorflow realizes verification code recognition (III)
- Kubernetes帶你從頭到尾捋一遍
- Concurrency-01-create thread, sleep, yield, wait, join, interrupt, thread state, synchronized, park, reentrantlock
- The state does not change after the assignment of El switch
- [combinatorics] combinatorial identities (recursive combinatorial identities | sum of variable terms | simple combinatorial identities and | sum of variable terms | staggered sums of combinatorial ide
- [transformer] Introduction - the original author of Harvard NLP presented the annotated transformer in the form of line by line implementation in early 2018
- Chapter 04_ Logical architecture
- 找映射关系
- 秒杀系统3-商品列表和商品详情
猜你喜欢

视觉上位系统设计开发(halcon-winform)
![[transform] [NLP] first proposed transformer. The 2017 paper](/img/33/f639ab527d5adedfdc39f8d8117c3e.png)
[transform] [NLP] first proposed transformer. The 2017 paper "attention is all you need" by Google brain team

高并发下之redis锁优化实战

Popular understanding of linear regression (II)

Visual upper system design and development (Halcon WinForm) -5 camera

Creation and destruction of function stack frames

Functional modules and application scenarios covered by the productization of user portraits

Jvm-04-runtime data area heap, method area

秒杀系统1-登录功能

VS2017通过IP调试驱动(双机调试)
随机推荐
函数栈帧的创建和销毁
Characteristics of MySQL InnoDB storage engine -- Analysis of row lock
【pytorch学习笔记】Transforms
Popular understanding of decision tree ID3
Popular understanding of random forest
[cloud native training camp] module VIII kubernetes life cycle management and service discovery
Jvm-04-runtime data area heap, method area
Mysql报错:[ERROR] mysqld: File ‘./mysql-bin.010228‘ not found (Errcode: 2 “No such file or directory“)
String functions that you need to know
socket. IO build distributed web push server
Redis single thread problem forced sorting layman literacy
WinDbg分析dump文件
[daily training] 395 Longest substring with at least k repeated characters
Jvm-03-runtime data area PC, stack, local method stack
[transform] [NLP] first proposed transformer. The 2017 paper "attention is all you need" by Google brain team
Kubernetes - YAML文件解读
Matlab r2011b neural network toolbox precautions
[attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer
Using Tengine to solve the session problem of load balancing
使用JMeter对WebService进行压力测试