当前位置:网站首页>使用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的使用。
边栏推荐
- Visual upper system design and development (Halcon WinForm) -4 Communication management
- Visual host system design and development (Halcon WinForm)
- do{}while()的妙用
- 在MapReduce中利用MultipleOutputs输出多个文件
- 函数栈帧的创建和销毁
- 【pytorch学习笔记】Transforms
- Popular understanding of random forest
- Kubernetes帶你從頭到尾捋一遍
- Kubernetes will show you from beginning to end
- 互斥对象与临界区的区别
猜你喜欢

What is machine reading comprehension? What are the applications? Finally someone made it clear

视觉上位系统设计开发(halcon-winform)-4.通信管理

Popular understanding of decision tree ID3

软件逆向破解入门系列(1)—xdbg32/64的常见配置及功能窗口

WinDbg分析dump文件

百度智能云助力石嘴山市升级“互联网+养老服务”智慧康养新模式
![[cloud native training camp] module VIII kubernetes life cycle management and service discovery](/img/87/92638402820b32a15383f19f6f8b91.png)
[cloud native training camp] module VIII kubernetes life cycle management and service discovery

Introduction, use and principle of synchronized

GCC cannot find the library file after specifying the link library path

Leasing cases of the implementation of the new regulations on the rental of jointly owned houses in Beijing
随机推荐
Jvm-02-class loading subsystem
[cloud native training camp] module 7 kubernetes control plane component: scheduler and controller
基础SQL教程
Detailed pointer advanced 2
[set theory] inclusion exclusion principle (complex example)
Puppet自动化运维排错案例
Using TCL (tool command language) to manage Tornado (for VxWorks) can start the project
Matplotlib drawing label cannot display Chinese problems
Didi off the shelf! Data security is national security
win32创建窗口及按钮(轻量级)
软件逆向破解入门系列(1)—xdbg32/64的常见配置及功能窗口
视觉上位系统设计开发(halcon-winform)-1.流程节点设计
Kubernetes will show you from beginning to end
Kubernetes vous emmène du début à la fin
Visual upper system design and development (Halcon WinForm) -5 camera
Redis single thread problem forced sorting layman literacy
Jvm-06-execution engine
Solve the problem that pushgateway data will be overwritten by multiple push
[transformer] Introduction - the original author of Harvard NLP presented the annotated transformer in the form of line by line implementation in early 2018
Jvm-03-runtime data area PC, stack, local method stack