To create our own APT mirror server we've done the following:
$ apt-get install apt-mirror nginx
Put the following in /etc/apt/mirror.list
: gist
Put the following in /etc/nginx/sites-enabled/default
: gist
Put the following in /etc/cron.d/apt-mirror
: gist
Now run:
$ apt-mirror
$ service nginx restart
Assuming your server is called something like: http://apt.my.server/
, you can now visit: http://apt.my.server/cisofy
It should show something like: image
Now on a client you can configure APT as following:
Put the following in /etc/apt/sources.list.d/cisofy.list
:
deb http://apt.my.server/cisofy/ trusty main
Replace the apt.my.server
part with the hostname of your mirror server.
After this, on the client, run:
$ apt-get update
$ apt-get install lynis
And you're done.