Arch: установка Oracle Java и PyCharm

Автор: | 23/12/2016
 

Обновляем систему:

# pacman -Syyu

Установка Oracle Java

Пакеты можно найти тут>>>, или поискав через yaourt:

$ yaourt jdk
1 extra/jdk7-openjdk 7.u111_2.6.7-1
    OpenJDK Java 7 development kit
2 extra/jdk8-openjdk 8.u112-1
    OpenJDK Java 8 development kit
3 extra/jre7-openjdk 7.u111_2.6.7-1
    OpenJDK Java 7 full runtime environment
4 extra/jre7-openjdk-headless 7.u111_2.6.7-1
...
21 aur/jdk 8u112-1 (729) (13.00)                                                                                                                                                                                                                                                 
    Oracle Java Developme
...
48 aur/tuxjdk-doc 8.92.03-2 (5) (1.66)
    OpenJDK Java 8 documentation
49 aur/tuxjdk-src 8.92.03-2 (5) (1.66)
    OpenJDK Java 8 sources
==> Enter n�� of packages to be installed (ex: 1 2 3

Устанавливаем:

$ yaourt -S jdk
...
Packages (1) jdk-8u112-1

Total Installed Size:  350.59 MiB
...

Проверяем:

$ java -version
java version "1.8.0_112"
Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)

Если установлено несколько версий Java – можно просмотреть их и переключиться на определённую с помощью скрипта archlinux-java:

$ archlinux-java -h
archlinux-java <COMMAND>

COMMAND:
        status          List installed Java environments and enabled one
        get             Return the short name of the Java environment set as default
        set <JAVA_ENV>  Force <JAVA_ENV> as default
        unset           Unset current default Java environment
        fix             Fix an invalid/broken default Java environment configuration
$ archlinux-java status
Available Java environments:
  java-8-jdk (default)

Больше – см. тут>>>.

Установка PyCharm

Устанавливаем пакет pycharm-community из AUR:

 $ yaourt  -S pycharm-community

==> Downloading pycharm-community PKGBUILD from AUR...
...
==> pycharm-community dependencies:
 - giflib (already installed)
 - ttf-font (already installed)
 - python2-setuptools (package found) [makedepend]
 - python-setuptools (package found) [makedepen
...
Packages (1) pycharm-community-2016.3.1-1 
 
Total Installed Size:  457.26 MiB
...

Проверяем:

$ which  pycharm
/usr/bin/pycharm

И запускаем:

Готово.