- yum update - my centos6.4 box was out of date and yum couldn't handle https repos, the ca-certificates package needed updating.
- yum install epel-release - the EPEL repos will now work as they use https by default
- yum install java-1.7.0-openjdk-devel - yeah java!
- yum install wget - no it wasn't installed by default
- wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo - Maven is not available from standard RPM repo sigh
yum install apache-maven- nope! it will fail as it requires java-devel >= 1.7.0 which for some reason java-1.7.0-openjdk-devel fails to provide, even though the 1.5 and 1.6 packages do! sigh- yum install yum-utils - to get repoquery
- rpm -Uvh --nodeps `repoquery --location apache-maven` - install maven ignoring dependency
In Summary
yum update
yum install epel-release
yum install java-1.7.0-openjdk-devel
yum install wget
wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
yum install yum-utils
rpm -Uvh --nodeps `repoquery --location apache-maven`
No comments:
Post a Comment