MCPcopy Create free account
hub / github.com/bleachbit/bleachbit / apt_autoclean

Function apt_autoclean

bleachbit/Unix.py:627–633  ·  view source on GitHub ↗

Run 'apt-get autoclean' and return the size (un-rounded, in bytes) of freed space

()

Source from the content-addressed store, hash-verified

625
626
627def apt_autoclean():
628 """Run 'apt-get autoclean' and return the size (un-rounded, in bytes) of freed space"""
629 try:
630 return run_cleaner_cmd('apt-get', ['autoclean'], r'^Del .*\[([\d.]+[a-zA-Z]{2})}]', ['^E: '])
631 except subprocess.CalledProcessError as e:
632 raise RuntimeError(
633 f"Error calling '{' '.join(e.cmd)}':\n{e.output}") from e
634
635
636def apt_clean():

Callers 1

test_aptMethod · 0.90

Calls 2

run_cleaner_cmdFunction · 0.85
joinMethod · 0.80

Tested by 1

test_aptMethod · 0.72