Install this version:
emerge -a =net-analyzer/nessus-agent-bin-11.2.3
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =net-analyzer/nessus-agent-bin-11.2.3
Or alternatively:
emerge --autounmask-write -a =net-analyzer/nessus-agent-bin-11.2.3
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
RPM_COMPRESS_TYPE="zstd"
inherit rpm systemd
MY_P="NessusAgent-${PV}-el9"
DESCRIPTION="A remote security scanner for Linux - agent component"
HOMEPAGE="https://www.tenable.com/"
SRC_URI="
amd64? ( https://www.tenable.com/downloads/api/v2/pages/${PN/-bin/s}/files/${MY_P}.x86_64.rpm )
arm64? ( https://www.tenable.com/downloads/api/v2/pages/${PN/-bin/s}/files/${MY_P}.aarch64.rpm )
"
S="${WORKDIR}"
LICENSE="GPL-2 Tenable-Master-Agreement"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
RESTRICT="mirror strip"
QA_PREBUILT="opt/nessus_agent/bin/*
opt/nessus_agent/lib/nessus/*.so*
opt/nessus_agent/lib/nessus/iconv/*.so
opt/nessus_agent/lib/nessus/libjemalloc.so.*
opt/nessus_agent/var/nessus/mod/com.tenable.*
opt/nessus_agent/sbin/*"
BDEPEND="
app-arch/rpm
app-arch/zstd
"
src_install() {
# Using doins -r would strip executable bits from all binaries
cp -pPR "${S}"/opt "${D}"/ || die "Failed to copy files"
# Make sure these originally empty directories do not vanish,
# Nessus will not run properly without them
keepdir /opt/nessus_agent/com/nessus/CA
keepdir /opt/nessus_agent/etc/nessus
keepdir /opt/nessus_agent/var/nessus/logs
keepdir /opt/nessus_agent/var/nessus/tmp
keepdir /opt/nessus_agent/var/nessus/users
newinitd "${FILESDIR}"/nessusagent.initd nessusagent
systemd_dounit usr/lib/systemd/system/nessusagent.service
}
pkg_postinst() {
# Actually update Nessus core components. According to upstream packages,
# harmless to invoke on fresh installations too - and it may make life easier
# for people who had restored Nessus state from backups, had it lying around
# from older installations and so on.
"${EROOT}"/opt/nessus_agent/sbin/nessuscli install "${EROOT}"/opt/nessus_agent/var/nessus/plugins-core.tar.gz
if [[ -z "${REPLACING_VERSIONS}" ]]; then
elog "In order to link the agent to Tenable.io or an instance of Nessus Manager,"
elog "obtain an appropriate linking key and run"
elog ""
elog " /opt/nessus_agent/sbin/nessuscli agent link --key=<key> --host=<host> --port=<port> [optional parameters]"
elog ""
elog "This can be done before the agent is started."
else
elog "Please restart the nessusagent service to complete the update process"
fi
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | NessusAgent-11.2.3-el9.aarch64.rpm | 14198887 bytes | https://www.tenable.com/downloads/api/v2/pages/nessus-agents/files/NessusAgent-11.2.3-el9.aarch64.rpm |
| DIST | NessusAgent-11.2.3-el9.x86_64.rpm | 14169681 bytes | https://www.tenable.com/downloads/api/v2/pages/nessus-agents/files/NessusAgent-11.2.3-el9.x86_64.rpm |