How should we port installed packages between MX19 and MX21?

When you run into problems installing MX Linux XFCE
Message
Author
OKie
Posts: 163
Joined: Thu Oct 15, 2020 10:00 am

How should we port installed packages between MX19 and MX21?

#1 Post by OKie »

The apt-clone solution doesn't work. The
sudo dpkg --get-selections > dpkglist.txt
followed by
sudo dpkg --set-selections < dpkglist.txt
also doesn't work. It claims the packages aren't available, but you can see in Synaptic that they are.

So, has anyone ported their user-installed packages from MX19 to MX21, and is there a working solution?

User avatar
dolphin_oracle
Developer
Posts: 22606
Joined: Sun Dec 16, 2007 12:17 pm

Re: How should we port installed packages between MX19 and MX21?

#2 Post by dolphin_oracle »

dpkg doesn't go out to the remote repos, so unless its local already it will never find anything.

you could try this.

Code: Select all

sudo dpkg --get-selections |grep -w install|cut -d$'\t' -f1 > dpkglist.txt
and then

Code: Select all

sudo apt install < $(cat dpkglist.txt)
will at least show you want isn't installable and you can refine so that your list installs.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

OKie
Posts: 163
Joined: Thu Oct 15, 2020 10:00 am

Re: How should we port installed packages between MX19 and MX21?

#3 Post by OKie »

From https://unix.stackexchange.com/question ... th-apt-get
As root:

Code: Select all

xargs -a ./dpkgselect.txt apt-get install
This command works, but the problem appears to be that many packages don't exist for MX21. For example, qalculate & medit.

I don't understand. I thought this distro was ready to go. Is there some secret repo that I need to add or should I be waiting on things?

SwampRabbit
Posts: 3602
Joined: Tue Jun 14, 2016 2:02 pm

Re: How should we port installed packages between MX19 and MX21?

#4 Post by SwampRabbit »

OKie wrote: Sun Jan 02, 2022 10:18 pm This command works, but the problem appears to be that many packages don't exist for MX21. For example, qalculate & medit.
Did you check why you couldn’t find those?

qalculate-gtk is what you want and…

medit is a python2 application, therefore won’t be available in any recent Distro unless the actual developer ports it to python3.
NEW USERS START HERE FAQS, MX Manual, and How to Break Your System - Don't use Ubuntu PPAs! Always post your Quick System Info (QSI) when asking for help.

User avatar
figueroa
Posts: 1106
Joined: Thu Dec 20, 2018 11:20 pm

Re: How should we port installed packages between MX19 and MX21?

#5 Post by figueroa »

I wouldn't recommend piping any generated list into an install program or script. The following will generate a reasonable list of what the system believes to be manually installed programs.

Code: Select all

apt-mark showmanual
Optionally, you can output it to a file for leisurely review.

Code: Select all

apt-mark showmanual > installed.txt
This list is a place to start. Look through the list for those actual programs that YOU really manually installed from the commandline, synaptic, or the package installer and make your own list.

Don't include libraries, other dependencies, or anything you don't recognize. What you can, reinstall them on the new system via the MX-Package-Installer. Others, your choice to use Synaptic or the commandline. Don't speed. Unless you've collected a vast library of programs (very bad practice) your actual list should be relatively small.

Edited -- Added: Search the forums, find the following thread. viewtopic.php?p=660421#p660421
Andy Figueroa
Using Unix from 1984; GNU/Linux from 1993

User avatar
Stevo
Developer
Posts: 14785
Joined: Fri Dec 15, 2006 7:07 pm

Re: How should we port installed packages between MX19 and MX21?

#6 Post by Stevo »

Debian somehow doesn't have qalculate-gtk in Bullseye repos. Let's see if I can fix that for MX 21.

Medit is kaput, though, since it needs the removed python-gtk2 stuff.

User avatar
manyroads
Posts: 2657
Joined: Sat Jun 30, 2018 6:33 pm

Re: How should we port installed packages between MX19 and MX21?

#7 Post by manyroads »

I just do something really easy, low-tech and takes about 10 minutes. I open the old .cpnfig file toye the application names I want to install in a text file such as the following:

Code: Select all

sudo apt install aptitude bleachbit bpytop brightnessctl caffeine celluloid conky-all dunst diodon filezilla feh gcc gcolor3 geany-plugins  grsync gsimplecal gparted grub-customizer htop i8kutils libx11-dev libxft-dev libxinerama-dev luckybackup lxappearance lxpolkit lxqt-powermanagement lxtask make neofetch nitrogen pnmixer powertop qpdfview rofi ranger suckless-tools sxhkd transmission tlp udiskie xcompmgr xdo xdotool xorg yad zenity zim

Execute that list (Note: sometimes it takes a bit to get the list right... another few minutes). FWIW. I now keep the list and just tweak it as needed; I build systems via this method about 20 times a month. My average build time (new install) on MX Linux including a transfer of 0.5TB of data takes me just over 2 hours (down from what used to be days). Maybe this will work for you. Like I said, it is simple and stupid; but it works better for me than any of the automated methods. :bagoverhead: I do the same with arch distros (programs/app names vary some from debian and my list of apps are tweaked to the distro).
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

harley-peter
Posts: 132
Joined: Tue Jan 05, 2021 6:13 am

Re: How should we port installed packages between MX19 and MX21?

#8 Post by harley-peter »

I followed this instruction for an upgrade from MX 19.4 to MX 21: https://mxlinux.org/wiki/upgrading-from ... nstalling/
So there is now necessity to port packages because besides the system all the packages remain installed as before or were updated. Here after some little config changes all work fine after the upgrade.

User avatar
CharlesV
Global Moderator
Posts: 7822
Joined: Sun Jul 07, 2019 5:11 pm

Re: How should we port installed packages between MX19 and MX21?

#9 Post by CharlesV »

SwampRabbit wrote: Sun Jan 02, 2022 10:34 pm
OKie wrote: Sun Jan 02, 2022 10:18 pm This command works, but the problem appears to be that many packages don't exist for MX21. For example, qalculate & medit.
Did you check why you couldn’t find those?

qalculate-gtk is what you want and…

medit is a python2 application, therefore won’t be available in any recent Distro unless the actual developer ports it to python3.
Question - I thought it was ok to install python 2 (python) on mx-21 ? Would it be 'bad' to install python2 and then medit ?
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
anticapitalista
Developer
Posts: 4314
Joined: Sat Jul 15, 2006 10:40 am

Re: How should we port installed packages between MX19 and MX21?

#10 Post by anticapitalista »

How are you going to install python2? It is no longer in the Debian repos.
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX with runit - lean and mean.
https://antixlinux.com

Post Reply

Return to “Installation”