Logo 
Search:

Unix / Linux / Ubuntu Answers

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds
  on Jan 21 In Unix / Linux / Ubuntu Category.

  
Question Answered By: Adah Miller   on Jan 21

1) Yes, you will want to re-enable/add all of your repositories, then
run "sudo apt-get update"

2) You just need to save your sources list to an external location.
use something like:

"sudo cp /etc/apt/sources.list /media/ /backup/sources.list.bak"

You can then restore with the reverse. i.e.,

"sudo cp /media/ /backup/sources.list.bak /etc/apt/sources.list",

and you can put the command into a bash script, if preferred.

The only issue is if you are installing an new version of ubuntu, you
will want to retain the new repositories, so you would have to pipe
your text in sources.list.bak into your new sources.list via an
append... which is unfortunately a little above my pay grade without
spending some time on the web to figure out the right commands, and
I'm not sure if that is what you are after, either...


Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Can I save a list of software sources? Or get search suggestion and latest updates.


Tagged: