Update Manager - export / import software sources to / from data file

Suggestions and feedback for Linux Mint and the forums
Forum rules
Do not post support questions here. Before you post read: Where to post ideas & feature requests
Post Reply
gjdemo

Update Manager - export / import software sources to / from data file

Post by gjdemo »

I would like to see the option in the Update Manager that would allow me to import and export the PPA and Software sources to a data file so I can transfer this information to another machine. All my computers use Linux Mint and if I am doing a fresh install this would help immensely. Thank you.

Gary
Last edited by karlchen on Mon Aug 14, 2017 6:19 pm, edited 1 time in total.
Reason: made the title a bit longer and more descriptive, I hope
User avatar
karlchen
Level 23
Level 23
Posts: 18228
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Update Manager

Post by karlchen »

Hello, Gary.

All the software sources list files are pure text files. No need to export them as text files therefore.
You will find them in the folders /etc/apt and /etc/apt/sources.list.d
  • In the folder /etc/apt there will be the file sources.list
    sources.list will usually only hold a comment line.
  • All the relevant sources list files will be found in the folder /etc/apt/sources.list.d
    • The central sources list file on Mint is named official-package-repositories.list
    • All files having the extension .list will be sources list files
    • All files having the double extensions .list.save will be backup copies of sources list files.
You can view the content of each sources list file with your favourite editor like xed, gedit, leafpad or kate.

You can find out the name of each sources list file and the content of each sources list file very quickly by executing the command inxi -r in a terminal window.

One note on simply copying over the sources list files from one machine to the next machine:
While this is possible, it is only half of the truth, because each repository always requires a signing key as well, but copying over the sources list files will not bring along the signing keys. So you would end up with a lot of warnings that the software repositories could not be verified.

HTH,
Karl
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 792 days now.
Lifeline
Post Reply

Return to “Suggestions & Feedback”