How can I clear the list of updates and softwares (from an ubuntu download server) created when sudo apt-get update
is run for the first time (after the download server is selected)?
I do not want to delete the downloaded .deb files just the update cache created by sudo apt-get update
.
Downloaded package lists are in:
Reference: The Debian Administrator's Handbook - The apt-cache Command
You can get that easily with
strace
command:Meaning: trace file
open
system calls ofapt-get update
strace - trace system calls and signals
Usage:
strace [trace_options] command [args]
So:
apt-get update
is the regular command used to update/download packages lists.strace
will runapt-get update
and trace its system calls.-e trace=open
strace with default options will log all system calls. But we don't need that. So with this option strace will trace only file opening calls/operations.Reference:
man strace
Output sample:
strace -e trace=open apt-get update > /dev/null