Skip to content

Commit

Permalink
add clean of apt lists in apt installs
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Dec 5, 2024
1 parent 1d35abf commit 15cc80b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ibek/support_cmds/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ def _install_debs(debs: List[str]) -> None:
sudo = "sudo" if os.geteuid() != 0 else ""
command = (
f"{sudo} apt-get update && {sudo} apt-get upgrade -y && "
f"{sudo} apt-get install -y --no-install-recommends " + " ".join(debs)
f"{sudo} apt-get install -y --no-install-recommends "
+ " ".join(debs)
+ f" && {sudo} rm -rf /var/lib/apt/lists/*"
)
exit(subprocess.call(["bash", "-c", command]))

Expand Down

0 comments on commit 15cc80b

Please sign in to comment.