you can manual write the PKGBUILD or get aur repo by clone:
git clone https://aur.archlinux.org/<pkg_name>
pacman
Configuration
edit /etc/pacman.d/mirrorlist for mirror source:
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
Server = https://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch
edit /etc/pacman.conf for configure:
pacman.conf
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
#DBPath = /var/lib/pacman/
#CacheDir = /var/cache/pacman/pkg/
#LogFile = /var/log/pacman.log
#GPGDir = /etc/pacman.d/gnupg/
#HookDir = /etc/pacman.d/hooks/
HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
IgnorePkg = linuxqq typora
#IgnoreGroup =
#NoUpgrade =
#NoExtract =
# Misc options
#UseSyslog
Color
#NoProgressBar
CheckSpace
#VerbosePkgLists
ParallelDownloads = 5
DownloadUser = alpm
#DisableSandbox
ILoveCandy
# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required
# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.
#
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo
# - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
# [repo-name]
# Server = ServerName
# Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#
# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.
#[core-testing]
#Include = /etc/pacman.d/mirrorlist
[core]
Include = /etc/pacman.d/mirrorlist
#[extra-testing]
#Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.
#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist
[multilib]
Include = /etc/pacman.d/mirrorlist
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
command
install
sudo pacman -S <pkg_name>
update
sudo pacman -Sy
upgrade
sudo pacman -Syyu
uninstall
sudo pacman -Rsn <pkg_name>
force uninstall(ignore dependency):
Danger
this may cause lots of error.
please make sure you clearly know what you are doing
download pkgs from aur.archlinux.org, which is not such official.
ntfsfix
修复一些基本的ntfs一致性问题, 不是chkdsk(没法修复复杂的问题, 如索引丢失等)
修复分区:
sudo ntfsfix /dev/nvme0n1p<*>
Clear the volume dirty flag if the volume can be fixed and mounted. If the option is not present or the volume cannot be fixed, the dirty volume flag is set to request a volume checking at next mount.
sudo ntfsfix -d /dev/nvme0n1p<*>
mount
挂载分区.
直接挂载到已有位置(文件夹):
sudo mount /dev/<disk&part> </path/to/mount>
挂载并自动创建文件夹(如果没有):
sudo mount --mkdir /dev/<disk&part> </path/to/mount>
使用option:
sudo mount --options key1=val1,key2=val2 /dev/<disk&part> </path/to/mount>
常用options - btrfs的分卷:
sudo mount -o subvol=/@,defaults,user /dev/<disk&part> </path/to/mount>
指定partition类型:
sudo -t <type> mount /dev/<disk&part> </path/to/mount>