arch VPS How to install uninstall yay

Introduce | 導入

There are two officially supported versions of Arch Linux, pacman and Arch User Repository (AUR).

Since AUR is not officially supported, there is a lot of useful apps, although it increases the risk of viruses, trojans and backdoors being included.

Even in the AUR, it seems that the risk of virus contamination should be mostly concerned unless it is a fairly niche app. (I'm not saying no

Convenience is greatly enhanced by constructing an environment where AUR apps can be installed.

I will explain how to install yay, which can manage AUR packages in the same way as Pacman.

Describe the development environment. Reproducibility may be improved by making the development environment the same.

Tools for USE | 使った道具


gigabyte aero 15 4k review

Gigabyte AERO 15 for Creator


GIGABYTE AERO 15 4K有機EL 開封レビュー 動画解説付き

GIGABYTE AERO 15 クリエイター向け

Services and equipment used this time|今回利用したサービス

Describe the services used and used in this environment. Reproducibility may be improved by making the environment the same.

How to open vps server with Conoha VPS

conoha vps 初期設定 ssh接続方法

I do not operate the server with my home server, so I am using the service of the company, but if you can build the environment of your home server with extra PC etc., You might set up on the PC containing Arch linux It seems to work.

ssh connection|ssh接続

Start an application that runs Bash or zsh. You can read about how to do yesterday by looking at the detailed list.

How to open vps server with Conoha VPS



conoha vps 初期設定 ssh接続方法



Open bash|バッシュの起動

See previous articles on how to install Bash.


How to install git bash



バッシュを起動させたら ssh ???.???.???.?? と入力してエンター

The part of ??? is the number displayed in VPS of this time.

The authenticity of host ~ ngerprint])? Is displayed, type yes then Enter

root@???.???.???.???'s password: is displayed, type the password that you recommended when creating the Arch VPS and enter.

If you see [root @ localhost ~] #, you can successfully connect to ssh.

Arch linux 初期設定

Make settings inside SSH.

Update the initial package to the latest|初期パッケージを最新に更新

Type pacman -Syu elinks to enter. Update Arch Linux to the latest

:: Proceed with installation? [Y/n]


Will be output, so type y then enter

==> Image generation successful と出たら成功。 If you see ==> Image generation successful, you are successful.

Delete Package Cache|パッケージキャッシュの削除

Packages downloaded with pacman will be placed in the
/var/cache/pacman/pkg directory and the files will be kept there unless you manually remove them.

Even if the package is updated, the old version of the cache file will remain.

Therefore, if you do not manually delete the files on a regular basis, the amount of storage used will increase.

I think it's an important part of using Arch Linux, which is hard to notice. If you update the cache and clear the cache regularly, you can operate the server more stably.

Type pacman -Sc then enter. Clear the Archlinax cache

:: Do you want to remove all other packages from cache? [Y/n] キャッシュから他のすべてのパッケージを削除しますか?

Type y to enter

:: Do you want to remove unused repositories? 未使用のリポジトリを削除しますか?

Type y to enter

Install nano|テキストエディタのインストール

Install nano, the most popular text editor that you find intuitive and easy to use.

If you have another familiar editor, we would appreciate it if you could install it.

Type pacman -S nano to enter. Install nano.

:: Proceed with installation? [Y/n] is output. Type y to enter

colour setting|カラーの変更

The color is changed to improve the visibility of CLI. This action is optional.

Type nano /etc/pacman.conf and enter.

Delete the # from #Color in the editor to make it Color. The act of removing the # is called commenting out.

To undo your changes, add a # for Color in the editor and make it #Color.

Although it is an option, you can change the download animation by adding ILovecandy under # Misc options. This is a flavor element.

After making changes, press Ctrl(^) + s to save the changes

Ctrl(^) + x Exit nano with

Grant sudo privilege|sudo権限を付与

Give superuser privileges to general users. If you do not do this, ordinary users will not be able to rewrite files inside the root.

Type pacman -S sudo and enter.

Type EDITOR=nano visudo and enter.

Delete # in # % wheel ALL = (ALL) ALL in the editor to make % wheel ALL = (ALL) ALL

After making changes, press Ctrl(^) + s to save the changes

Ctrl(^) + x Exit nano with

install git| ギットのインストール

Install the git package needed to download yay files from the git hub

Type pacman -S git and enter.

:: Proceed with installation? [Y/n] Will appear, type y and enter

install go|go is god

Since yay is written in go language, installation of go language is required.

Type pacman -S go and enter

Creating a general user|一般ユーザーの作成

Create a general user.

Type useradd -m -aG wheel {Your username} and enter.

useradd Tip| useradd 補足

Here, by adding -m, a folder of {Your username} is created under the home directory.

Add {Your username} to the wheel group with -aG wheel. This will put you in the #% wheel ALL = (ALL) ALL group, so you can add sudo privileges.

Even if you forget to add a group here, you can add or remove it later, but it is a hassle and it would be easier to register all at once in the useradd part.

Add password to general user|一般ユーザーにパスワードを追加

Type passwd {Your username} and enter.

Type {Type any password you want to} to enter.

Type {Again type any password you want to} and enter.

If you see passwd: password updated successfully Is successful

Type su {The user name you just created} and enter.

Change user account from administrator to general user


Type cd and enter.

Go to the document root for regular users.

install yay| yayのインストール

Download yay in the document root of the created general user.

Since it is a repository created by the user, the risk of cracking increases, yay does not recommend installing yay with root authority or root hierarchy.

Creating a general user is almost mandatory to use yay.

Type git clone and enter

Type cd yay and enter

Type makepkg -si and enter

[sudo] password for arch: is output, type the password of a general user and enter

:: Proceed with installation? [Y/n] Will appear, type y and enter

以上で yay のインストール方法を終了します。

Uninstall yay|yayのアンインストール方法

I will explain how to uninstall yay.

Type makepkg -c and enter

That's how to uninstall yay.

The existence of the yay folder in the document root of general users is annoying, delete it. Please note that you cannot uninstall yay if this yay folder does not exist (1 lose)

Type cd .. and enter

Type sudo rm -r yay and enter

[sudo] password for arch: is output, type the password of a general user and enter

Thank you for watching until the end.

If you like the content, it would be very encouraging to make a donation. Thank you for your warm support.


Amazon support


Bitcoin Donate | ビットコイン寄付


thank you

Thank you for watching until the end. I'm glad if you can use it as a reference.

Help me

We will continue to update useful information. If you don't mind, please donate. If you donate, I'll be happy to jump.