PDA

View Full Version : Need to undo sed command.. medibuntu related.



esc1
April 10th, 2008, 01:42 AM
Programming hurts my brain.. and I'm gonna take the easy road and asks someone how to undo the following..

sudo sed -e 's/ non-free//' -i /etc/apt/sources.list.d/medibuntu.list

The above takes the non free components out but I want to enable them now.

I have feisty. If I just run this again..

sudo wget http://www.medibuntu.org/sources.list.d/feisty.list -O /etc/apt/sources.list.d/medibuntu.list

will I have access to the non free components? I'm such a noob.

ghostdog74
April 10th, 2008, 02:36 AM
make a copy of the file first before changing anything in future. when you need it back, just rename the original.

nanotube
April 10th, 2008, 06:49 AM
I have feisty. If I just run this again..

sudo wget http://www.medibuntu.org/sources.list.d/feisty.list -O /etc/apt/sources.list.d/medibuntu.list

will I have access to the non free components? I'm such a noob.

yes you will - that command gets a fresh copy of the medibuntu.list off the medibuntu webserver.

but ghostdog gives good advice - back up your files before you play with them, it's good practice. :)

buried
April 10th, 2008, 06:55 AM
Wow it's already answered, although I was gonna :P