-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrhel-6_env-setup.sh
More file actions
131 lines (49 loc) · 1.61 KB
/
rhel-6_env-setup.sh
File metadata and controls
131 lines (49 loc) · 1.61 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#!/bin/bash
# Download RPMforge
# By Matt Williams
# Get your packages:
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
# Install DAG's GPG key
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
if [ $? != 0 ]
then
echo "Key has already been imported!"
fi
# Verify the package you have downloaded
rpm -k rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
# Install the package
rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
# Download a package to see if it works
yum install htop
# Update yum.conf for install of yum-priorities
if [ $(grep -e 'plugins=1' /etc/yum.conf) -ge 1 ]
then
break
else
echo "plugins=1" >> /etc/yum.conf
fi
# Install yum-priorities
yum install yum-plugin-priorities
_yum_test='/etc/yum/pluginconf.d/priorities.conf'
if [ -f $_yum_test ]
then
echo "$_yum_test is already here!"
else
touch /etc/yum/pluginconf.d/priorities.conf
fi
echo '[main]' >> /etc/yum/pluginconf.d/priorities.conf
echo 'enabled=1' >> /etc/yum/pluginconf.d/priorities.conf
# Install the Extra Packages for Enterprise Linux (EPEL) Next!
#This might have to be updated
wget http://mirrors.nebo.edu/public/epel/6/i386/epel-release-6-8.noarch.rpm
rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6
rpm -k epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
# Install fuse-ntfs-3g
_dkms_checker=$(rpm -qa dkms*)
if [ $_dkms_checker -ge 1 ]
then
yum remove dkms-fuse
fi
yum --enablerepo=rpmforge install fuse fuse-ntfs-3g
yum install ntfsprogs ntfsprogs-gnomevfs