Manjaro Linux add source and input method

Generate a list of available Chinese mirrors

sudo pacman-mirrors -i -c China -m rank

 Check the corresponding mirror station, see your own preferences, such as the University of Science and Technology of China: http://mirrors.ustc.edu.cn/manjaro/ ; just select one and click OK.

flush cache

sudo pacman -Reason

Popular science: update the system (upgrade the software package)

sudo  pacman -Syu

Install input method

sudo pacman -S fcitx-im fcitx-configtool  
sudo pacman -S fcitx- sogoupinyin
#If it shows that the package cannot be found, use the following command
————————
/* Install yaourt first */

sudo  pacman -S yaourt

Then

sudo yaourt sogou

You can find a Sogou input method and install it according to the prompts

Then set the boot to start fcitx

sudo nano /etc/profile
or
sudo  vi / etc / profile

Add in /etc/profile

export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS =@im = fcitx

Finally restart the computer

reboot

 

 

Little knowledge: In this article, it is mentioned to install the software with the pacman -S command such as:

sudo pacman -S ****

So what about the command to remove software?

remove package

Remove a single package, keeping all its installed dependencies

pacman -R package_name

 

Remove the specified package and all its dependencies not used by other installed packages:

pacman -Rs package_name

 

 

clean package cache

pacman saves downloaded packages in /var/cache/pacman/pkg/and doesn't automatically remove old and uninstalled versions of packages, so manual cleanup is required to keep this folder from getting too large.

Use the built-in option to clear the cache of uninstalled packages:

# pacman -Sc

 

warn:
  • Perform a cleanup only if you are sure that the currently installed packages are stable enough and do not need to be downgraded . pacman -ScOnly the current valid version of the package will be kept, after the old version of the package has been cleaned up, it can only be obtained from other places such as the Arch Linux Archive (Simplified Chinese) .
  • pacman -SccIt is possible to clear all caches, but then pacman will have to re-download the package when reinstalling it. This should not be done unless there is insufficient space.

Due to the above limitations, it is recommended to use a special script to deal with which and how much cache to clear:

The paccache command provided by pacman will delete packages nearly 3 versions ago by default

# paccache -r

 

Tip: The cleanup can be performed automatically using pacman hooks , here is a reference example.

You can also set your own settings to keep the most recent versions:

#paccache -rk 1

 

Clean up the cache files of all uninstalled packages and run paccache:

# paccache -ruk0

 

See more functions paccache -h.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325218732&siteId=291194637