debian question: installing latest pve-kernel-3.10.0-N

pixel

Renowned Member
Aug 6, 2014
138
3
83
making a setup script (ansible playbook) for pve nodes, and want to install the latest pve-kernel-3.10.0. theres no package called pve-kernel-3 or 3.10, so is there a way script the installation of the latest of that series?
 
making a setup script (ansible playbook) for pve nodes, and want to install the latest pve-kernel-3.10.0. theres no package called pve-kernel-3 or 3.10, so is there a way script the installation of the latest of that series?
Hi,
not directly an script, but something like this should work:
Code:
pvekernel=`apt-cache search pve-kernel-3.10 | sort -n | head -1 | awk '{print $1}'`
apt-get install $pvekernel
Udo