Skip to content

Commit

Permalink
Merge pull request #264 from epics-containers/apt-clean
Browse files Browse the repository at this point in the history
add clean of apt lists in apt installs command
  • Loading branch information
gilesknap authored Dec 17, 2024
2 parents 1d35abf + 15cc80b commit 842b69c
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 842b69c

Please sign in to comment.