Author Topic: Importing Packages List  (Read 5883 times)

0 Members and 1 Guest are viewing this topic.

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1993
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Importing Packages List
« on: April 26, 2017, 05:37:12 pm »
I notice in Muon Update Manager there's a few options to do with updates,
'Add Downloaded Packages','Save Installed Packages List','Download Packages From List'

I previously managed to install Kubuntu 14.04 on a laptop which dah Window$ on and now, to save time, I want to be able to import a list of installed packages from my desktop PC to my laptop.

How do I do this?

Kubuntu 14.04LTS 64bit|KDE 4.14.13|QT 4.8.6|Linux 4.2.0-42-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17138
  • Karma: 434
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Importing Packages List
« Reply #1 on: April 27, 2017, 02:35:20 pm »
First you'd need to make sure you've added all the same PPA's if you had any, and that all the same repos are enabled .. then update the package lists with:
Code: [Select]
sudo apt-get update
then import your previously exported package list through muon (I personally can't help you there).



The other option would be to do it via the command line..

On the PC you want to export the package markings from:
Code: [Select]
mkdir ~/my-dpkg-markings
dpkg --get-selections > ~/my-dpkg-markings/Package.list
cp -R /etc/apt/sources.list* ~/my-dpkg-markings/
apt-key exportall > ~/my-dpkg-markings/Repo.keys

then copy the "my-dpkg-markings" directory from your home folder on the donor PC to your home folder on the recipient PC .. and import them with:
Code: [Select]
sudo apt-key add ~/my-dpkg-markings/Repo.keys
sudo cp -R ~/my-dpkg-markings/sources.list* /etc/apt/
sudo apt-get update
sudo apt-get install dselect
sudo dselect update
apt-cache dumpavail > ~/my-dpkg-markings/temp_avail
sudo dpkg --merge-avail ~/my-dpkg-markings/temp_avail
rm ~/my-dpkg-markings/temp_avail
sudo dpkg --set-selections < ~/my-dpkg-markings/Package.list
sudo apt-get dselect-upgrade -y
I must add I have NOT tested these instructions, they look about right to me but if they screw things up don't blame me.

Source:
https://askubuntu.com/questions/9135/how-to-backup-settings-and-list-of-installed-packages


WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline pooky2483

  • Hero Member
  • *****
  • Posts: 1993
  • Karma: 0
  • Gender: Male
  • Slowly getting the hang of it.
    • View Profile
    • Get your FREE Ubuntu stickers here. I'm the UK address
    • Awards
Re: Importing Packages List
« Reply #2 on: April 27, 2017, 03:58:34 pm »
I tried the first bit before posting my question. I posted the question because when I did what you said, nothing happened.
I now realise that I didn't have the repo's and PPA's set the same.

I'll give it a go later, after I've got the wireless problem sorted.

Kubuntu 14.04LTS 64bit|KDE 4.14.13|QT 4.8.6|Linux 4.2.0-42-generic|M5A78L-M USB3|BIOS 2101|AMD PhenomII X4 965 3400+|P8H77-I Motherboard NIC|32.0GB PC3-10600 1333Mhz CL9 ( 9-9-9-24 ) DDR3

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal