I tried to install Gnome 3 on Debian Testing following this explanation. However, this didn't work and left me without any graphical user interface.
At the moment I try to fix that and I realised there is a long list of packages marked as manually installed. I stored a (line-break separated) list of the packages that – in my opinion – should be marked as auto installed (nearly all of them).
Now I want to run apt-mark auto
for this list.
How do I do that?
P.S.: I also would appreciate if somebody tells me that this is not a good idea (if it isn't).
xargs
, you can just write</path/to/file xargs apt-mark auto
; and it'll cope with any whitespace separation between package names, not necessarily newlines (xargs
has quoting issues but Debian package names don't contain any problematic character so it's ok here). An even simpler method isapt-mark auto $(cat /path/to/file)
(which, again, works without requiring any special precaution because package names don't contain special characters). – Gilles 'SO- stop being evil' Jul 12 '11 at 21:06