[HowTo] Install the official Cisco AnyConnect VPN Client tarball using the AUR (UPDATED)

I created a new how-to guide for a few reasons:

  1. The cisco-anyconnect-tarball changes are now merged to cisco-anyconnect, making the old guide (and the old -tarball package) useless.

  2. I have new information regarding how to add the tarball to the package installer, for both the CLI and Pamac.

  3. I didn't get edit permissions until very soon after I made this post public.

  4. Since I got flag/edit permissions after I made this post, I flagged the original post, and it's now been unlisted.

For some users, there won't be an option to include a link, so I'll specify how to include the tarball locally instead.

With that in mind, here's the new (updated) how-to guide for the tarball:

CLI:

If yay is not installed, do:

sudo pacman -S yay

Then, run:

yay -S cisco-anyconnect

This will fail, but that's ok. You want to create the cisco-anyconnect directory. This can be found in:

/home/$USER/.cache/yay/cisco-anyconnect

Copy the tarball here. Then, install again, but instead edit the PKGBUILD script within the installation command:

yay -S cisco-anyconnect --editmenu

Say None (N) to CleanBuild, None (N) to showing diffs (or All (A) if you really want to see the diffs), and All (A) to editing the PKGBUILD.

At the top you'll see:

_source="installer"   # if installing from .sh installer
#_source="tarball"     # if installing from .tar.gz package

Change it to:

#_source="installer"   # if installing from .sh installer
_source="tarball"     # if installing from .tar.gz package

Scroll down and you'll see:

if [[ "${_source}" == "tarball" ]]; then
    _filename="anyconnect-linux64-${pkgver}-predeploy-k9.tar.gz"

Make sure the _filename variable is the same as your tarball. Yours may not be by default because Cisco, that's why.

Save the PKGBUILD, close, and complete the installation process as normal.

Post-install

Finally, run the following command as root:

systemctl enable --now vpnagentd

And that's all there is to it!

If anyone needs Pamac instructions I'll provide them in a separate comment. I don't think anyone will need them, but if someone really needs to do this in Pamac I know how.

If there are any other questions feel free to ask either here or on the AUR page, linked above. I would ask here if it's a simple question, but ask at the AUR page if it's more complicated.

1 Like

You should more or less never use pacman -Sy or yay -Sy. This will usually lead to a partial update scenario and can easily result in a broken system.

Either use pacman -S or pacman -Syu.

2 Likes

Ah. Well I had no idea of the 'proper' convention, since I've seen -S, -Sy, and -Syu within the same thread sometimes (I'm pretty sure...). I've updated the guide with '-S' instead. Thanks!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by