Package Details: anyconnect-client 4.5.04029-3

Git Clone URL: (read-only, click to copy)
Package Base: anyconnect-client
Description: Cisco AnyConnect Secure Mobility Client
Upstream URL:
Licenses: custom
Submitter: RunasSudo
Maintainer: None
Last Packager: RunasSudo
Votes: 3
Popularity: 0.199865
First Submitted: 2019-02-09 07:20
Last Updated: 2019-04-02 23:55

Pinned Comments

RunasSudo commented on 2019-02-09 07:22

To build, download anyconnect-linux64-$ and place it with the sources, and adjust the PKGBUILD pkgver as appropriate.

Latest Comments

1 2 Next › Last »

matzomat commented on 2021-02-10 18:23

I was able to update the PKGBUILD for pkgver=4.9.04053, fixing @japhir 's errors among others:

  • ${INSTALL} -D icons instead of cp
  • is missing in 4.9.04053 so I commented out sed on it
  • icon-theme.cache exists, so rm it from the package (re-created anyway when updating the icon cache)
  • fix manifesttool symlink to not point into $pkgdir(?) after package install

This worked for me:

# Maintainer: Yingtong Li <>
pkgdesc="Cisco AnyConnect Secure Mobility Client"
source=("anyconnect-linux64-$" 'vpnagentd.service')
sha256sums=('SKIP' '39ea96d1c23ff45619f65e7e0d5bf0e375556ae22fc463f607d58bbb44a22636')
options=('!strip') # Stripping binaries causes things to stop working

prepare() {
    # Separate script for processing
    TARLINE=$(grep -an 'BEGIN ARCHIVE' ${source[0]} | cut -d ":" -f 1)
    head -n $TARLINE ${source[0]} >
    tail -n +$(($TARLINE+1)) ${source[0]} > payload.tar.gz

    # Output to $pkgdir
    sed -i "s#/opt#$pkgdir/opt#g"
    sed -i "s#/etc#$pkgdir/etc#g"
    sed -i "s#/usr#$pkgdir/usr#g"

    # Skip .install stuff
    sed -i 's/# generate default/if false; then # generate default/g'
    sed -i 's/if \[ "${RMTEMP}" = "yes" \]; then/fi; if \[ "${RMTEMP}" = "yes" \]; then/g'
    sed -i 's/cp \(${NEWTEMP}\/resources\)/${INSTALL} -D \1/g'
    # Assemble script
    cat payload.tar.gz >>

package() {
    mkdir -p "$pkgdir/etc/init.d"
    mkdir -p "$pkgdir/usr/share/desktop-directories"
    mkdir -p "$pkgdir/usr/share/applications"

    #export LD_LIBRARY_PATH="$pkgdir/opt/cisco/anyconnect/lib:$LD_LIBRARY_PATH"

    rm "$pkgdir/opt/cisco/anyconnect/"*.log

#   sed -i "s#$pkgdir##g" "$pkgdir/opt/cisco/vpn/bin/"
    ln -sf $(basename "$pkgdir/opt/cisco/anyconnect/lib/"*) "$pkgdir/opt/cisco/anyconnect/lib/"

    rm -r "$pkgdir/etc/init.d"
    mkdir -p "$pkgdir/usr/lib/systemd/system/"
    install -m 0644 vpnagentd.service "$pkgdir/usr/lib/systemd/system/"
    rm "$pkgdir/usr/share/icons/hicolor/icon-theme.cache"
    ln -sf manifesttool_vpn "$pkgdir/opt/cisco/anyconnect/bin/manifesttool"

japhir commented on 2020-11-26 14:38

I just tried updating to pkgver=4.9.04043 but it seems to crash. I've downloaded the new file through my university website, changed the pkgver in the PKGBUILD in ~/.cache/paru/clone/anyconnect-client and tried to run makepkg -si, resulting in the following output:

EDIT: for now I've quickly just run the script as the user manual says, but that means that it's installed some files in /opt that pacman doesn't know about :(. I'll have to sort out that mess in the future.

makepkg -s
==> Making package: anyconnect-client 4.9.04043-3 (Thu 26 Nov 2020 03:35:37 PM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found
  -> Found vpnagentd.service
==> Validating source files with sha256sums... ... Skipped
    vpnagentd.service ... Passed
==> Extracting sources...
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
Installing Cisco AnyConnect Secure Mobility Client...
Extracting installation files to /tmp/vpn.lJTmuU/vpninst120895313.tgz...
Unarchiving installation files to /tmp/vpn.lJTmuU...
cp: cannot create regular file '/tmp/makepkg/anyconnect-client/pkg/anyconnect-client/usr/share/icons/hicolor/48x48/apps/cisco-anyconnect.png': No such file or directory
cp: cannot create regular file '/tmp/makepkg/anyconnect-client/pkg/anyconnect-client/usr/share/icons/hicolor/64x64/apps/cisco-anyconnect.png': No such file or directory
cp: cannot create regular file '/tmp/makepkg/anyconnect-client/pkg/anyconnect-client/usr/share/icons/hicolor/96x96/apps/cisco-anyconnect.png': No such file or directory
cp: cannot create regular file '/tmp/makepkg/anyconnect-client/pkg/anyconnect-client/usr/share/icons/hicolor/128x128/apps/cisco-anyconnect.png': No such file or directory
cp: cannot create regular file '/tmp/makepkg/anyconnect-client/pkg/anyconnect-client/usr/share/icons/hicolor/256x256/apps/cisco-anyconnect.png': No such file or directory
Exiting now.
sed: can't read /tmp/makepkg/anyconnect-client/pkg/anyconnect-client/opt/cisco/vpn/bin/ No such file or directory

thomasb commented on 2020-04-02 16:08

FYI: it also worked to build the package with the anyconnect-linux64-$ file found on the Internet, and then run the file provided by the admin.

ElderBladeX commented on 2020-01-22 06:18

I installed the packaged according to @trOlley without issue - thanks for that clarification. The app crashed immediately on startup for me. I had to install gtk2 to resolve the crash at startup and webkit2gtk to successfully connect. Don't forget to start/enable vpnagentd.service.

Alad commented on 2019-12-01 13:15

I only have "predeploy" versions from my employer. (anyconnect-linux64-4.7.04056-predeploy-k9.tar.gz) What's the difference to "webdeploy", and can I still use this package with it?

tr0lley commented on 2019-04-30 16:40

@dfjigdfijgojio What wasn't clear to me at the beginning was where to put the file, but I've worked it out! Here are the steps I took:

  1. As per @RunasSudo's instructions, you need to download anyconnect-linux64-$
  2. Using your AUR client, clone the anyconnect-client package in a manner such that it prompts you to edit the PKGBUILD file. I used pacaur, so the command for me was pacaur -Sde anyconnect-client.
  3. When the PKGBUILD is opened in a text editor, go to your file explorer and navigate to your .cache folder and find the folder of your package manager. There, you will find the source folder called anyconnect-cisco. In my case, the directory was: /home/usr/.cache/pacaur/anyconnect-cisco.
  4. Copy your downloaded anyconnect-linux64-$ file into this directory. Take notice that the $pkgver part in your file's name will (probably) have something else in place.
  5. In your PKGBUILD file, go the the line near the top beginning with source:. Edit the declaration of the file such that it matches the filename of the file you just copied into the source folder.
  6. Write out the changes you made to the PKGBUILD and close the file. Your AUR manager will do the rest and (hopefully) install the anyconnect-client.

Hopefully this helps someone out there :)

dfjigdfijgojio commented on 2019-04-02 23:36

==> Building and installing package
==> Making package: anyconnect-client 4.5.04029-2 (Wed 03 Apr 2019 04:03:55 AM +0430)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
==> ERROR: was not found in the build directory and is not a URL.
==> ERROR: Makepkg was unable to build anyconnect-client.
==> Restart building anyconnect-client ? [y/N]

Ragnarok commented on 2019-03-25 14:23

Where can I get the 'anyconnect-linux64-$' from? I can download from Cisco AnyConnect Secure Mobility Client a pkg and two differnt tars. None of them contains the webdeploy shell script that I need.

gpiantoni commented on 2019-03-21 15:27

Thanks for the awesome package! It saved me so much work.

BTW, I'd also suggest to add pangox-compat as dep.

nkay08 commented on 2019-03-18 15:43

Could you add a dependency to pangox-compat from extra ? /opt/cisco/anyconnect/bin/vpnui won't run without /usr/lib/