Open VPN on Centos

I'm having problems installing Open VPN on Centos. It doesn't recognise the package.

I tried to get the rpm by doing the following

rpm -Uvh http://dag.wieers.com/rpm/packages/open … f.i386.rpm">http://dag.wieers.com/rpm/packages/openvpn/openvpn-1.4.3-0.el5.rf.i386.rpm

I get the following error

> Retrieving http://dag.wieers.com/rpm/packages/open … 386.rpmrpm">http://dag.wieers.com/rpm/packages/openvpn/openvpn-1.4.3-0.el5.rf.i386.rpmrpm

D: … as /var/tmp/rpm-xfer.OvYS1Z

D: failed to open http://dag.wieers.com/rpm/packages/open … 386.rpmrpm">http://dag.wieers.com/rpm/packages/openvpn/openvpn-1.4.3-0.el5.rf.i386.rpmrpm:

error: skipping http://dag.wieers.com/rpm/packages/open … 386.rpmrpm">http://dag.wieers.com/rpm/packages/openvpn/openvpn-1.4.3-0.el5.rf.i386.rpmrpm - transfer failed - Unknown or unexpected error

Retrieving http://dag.wieers.com/rpm/packages/open … f.i386.rpm">http://dag.wieers.com/rpm/packages/openvpn/openvpn-1.4.3-0.el5.rf.i386.rpm

D: … as /var/tmp/rpm-xfer.vvgxc9

D: failed to open http://dag.wieers.com/rpm/packages/open … f.i386.rpm">http://dag.wieers.com/rpm/packages/openvpn/openvpn-1.4.3-0.el5.rf.i386.rpm:

error: skipping http://dag.wieers.com/rpm/packages/open … f.i386.rpm">http://dag.wieers.com/rpm/packages/openvpn/openvpn-1.4.3-0.el5.rf.i386.rpm - transfer failed - Unknown or unexpected error

D: May free Score board((nil))

warning: u 0x808efb8 ctrl 0x808fdd0 nrefs != 0 (dag.wieers.com http)

[root@li64-42 etc]#

What am I doing wrong?

5 Replies

Perhaps rpm doesn't follow HTTP redirects? Following that dag.wieers.com URL redirects me to:

http://rpmforge.sw.be/redhat/el5/en/i38 … f.i386.rpm">http://rpmforge.sw.be/redhat/el5/en/i386/rpmforge/RPMS/openvpn-1.4.3-0.el5.rf.i386.rpm

You could try that URL instead, or just add Dag's repository to Yum and install the package with yum install openvpn.

I now get this

> ]# rpm -Uvh http://rpmforge.sw.be/redhat/el5/en/i38 … f.i386.rpm">http://rpmforge.sw.be/redhat/el5/en/i386/rpmforge/RPMS/openvpn-1.4.3-0.el5.rf.i386.rpm

Retrieving http://rpmforge.sw.be/redhat/el5/en/i38 … f.i386.rpm">http://rpmforge.sw.be/redhat/el5/en/i386/rpmforge/RPMS/openvpn-1.4.3-0.el5.rf.i386.rpm

error: Failed dependencies:

liblzo.so.1 is needed by openvpn-1.4.3-0.el5.rf.i386

sighs

I never had this problem with debian. Why is Centos so much harder?

I'll try adding dag's repository.

Repositories are the correct way to go because that's how you get dependency fullfillment. I'm not an expert at Debian, but I believe that "rpm" is the equivalent of "dpkg" and "yum" is close to "apt"

Thanks for your help everyone. I've now got Open VPN installed. :D :D

Just a quick question though. I got this message when I ran "yum check-update"

> Loaded plugins: fastestmirror, priorities

Loading mirror speeds from cached hostfile

  • rpmforge: apt.sw.be

  • base: mirror.skiplink.com

  • updates: centos.mirror.nac.net

  • addons: www.gtlib.gatech.edu

  • extras: mirror.trouble-free.net

rpmforge | 1.1 kB 00:00

primary.xml.gz | 3.5 MB 00:01

rpmforge 9604/9604

407 packages excluded due to repository priority protections

Why are all these packages being excluded? Is this normal? On the centos page it said there may be more than 76 packages excluded, but isn't 407 a little high. Could I have done something wrong?

407 is about correct (that's also what I get on my real CentOS 5.3 machine at home).

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct