-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpycharm-umake.sh
54 lines (45 loc) · 1.19 KB
/
pycharm-umake.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
################################################################################
# Script for installing PyCharm on Ubuntu 16.04 (64 bits)
# Authors
# * Javi Melendez, <[email protected]> 2016
#-------------------------------------------------------------------------------
# USAGE:
#
# pycharm-umake
#
# EXAMPLE:
# chmod +x pycharm-umake.sh
# ./pycharm-umake.sh
#
################################################################################
set -o errexit
set -o nounset
set -o pipefail
set -o xtrace
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
# If PostgreSQL PPA has been added
cat << EOF > /etc/apt/preferences.d/pgdg.pref
Package: *
Pin: release o=apt.postgresql.org
Pin-Priority: 500
Package: python*
Pin: release o=apt.postgresql.org
Pin-Priority: 400
EOF
# Install latest stable version of ubuntu-make
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt-get update
sudo apt-get --reinstall install ubuntu-make
# Install PyCharm Community Edition
umake ide pycharm
# or Professional Edition
#umake ide pycharm-professional
# DONE
# To remove PyCharm installed via umake
#umake -r ide pycharm
# or
#umake -r ide pycharm-professional