I suppose that most of you that use the command line for updates will probably also use the following format to hold/release packages:
Code: Select all
echo libenchant1c2a hold | dpkg --set-selections
echo libenchant1c2a install | dpkg --set-selections
What I want to know is, is there a way to alter the status of several packages at once?
I tried it with brace expansion eg:
Code: Select all
echo {libenchant1c2a, xserver-xorg-core, xserver-common, xnest} install | dpkg --set-selections
But all I got was errors, which presumably means that is not the way to do it. (and btw. since I am not sure which is correct, I have tried commas without spaces, spaces without commas and spaces with commas inside the curly brackets, and none of them work).
So is there a way to achieve this? (and I don't mean using synaptic or aptitude or dselect or anything like that, I mean using dpkg).