Hi Tim,

> So if I wanted to run something like sudo apt purge protonvpn, how do
> I exclude it from /media/ folder and sub folders??

‘apt purge’ runs ‘apt-get purge’.  This is deleting the files installed
from the given package(s).  Plus the ‘purge’ rather than ‘remove’ means
any configuration files, which you may have edited, are also removed.
‘remove’ leaves them be in case you re-install the package and still
want your old, tailored configuration.

Neither delete anything which wasn't installed from the package.  They
don't go searching the disk for things to install.  There should be no
concern over your /media.

You could use the --dry-run option, detailed in apt-get(1), to have it
show what would be done without doing it.

-- 
Cheers, Ralph.

-- 
  Next meeting: Online, Jitsi, Tuesday, 2026-01-06 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  https://dorset.lug.org.uk
  New thread, don't hijack:  mailto:[email protected]

Reply via email to