How to install our LMDE packages in 3 seconds

Taking advantage of the recent article what did i post about mintbackup, I want to show you three easy ways to reinstall the packages we use when we reinstall our LMDE.

Actually, except for the first form, the others can be used both in Debian, As in Ubuntu.

Installation in 3 seconds

Graphically.

This is the way most like it, all graphical and without having to touch a terminal. In LMDE y linuxmint, there is a fabulous tool called mintbackup, which among other things, we can use to save our packages and later, reinstall them.

In the case of LMDE, if we update the package python-apt to version 0.8.0, we will not be able to use mintbackup due to a dependency problem. It will return the following error:

Traceback (most recent call last):
File "/usr/lib/linuxmint/mintBackup/mintBackup.py", line 87, in <module>
class MessageDialog(apt.FetchProgress):
AttributeError: 'module' object has no attribute 'FetchProgress'

Hopefully the guys from Mint fix it soon.

Through the terminal.

Through the console we can do it in 2 ways, which in the end, has been the same.

In 2 steps.

dpkg --get-selections | awk '$2 ~ /^install$/ {print $1}' > lista_de_paquetes.txt

Once we have access to the repositories and everything is configured and updated, we just have to put this:

cat lista_de_paquetes.txt | xargs sudo aptitude install -y

In 3 steps.

dpkg --get-selections "*" > /home/user/Desktop/lista_de_paquetes.txt

After reinstalling we execute this:

dpkg --set-selections  < /home/user/Desktop/lista_de_paquetes.txt

And then we run:

apt-get -u dselect-upgrade

I think it is unnecessary to clarify that we must have the repositories configured correctly .. Simple right?


8 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Courage said

    Or you also write down all the programs you had before and do

    sudo apt-get -y insall all packages that have been deleted

    I really don't know if LMDE has the same goal as Linux MInt, to be out of the box

    1.    Courage said

      * install

  2.   hokasito said

    Although it is a bit "off-topic", I wanted to warn that the release candidates have come out in Linux Mint Debian 201108 for GNOME and XFCE. I hope quite a few improvements have been made… 🙂

    1.    elav <° Linux said

      Well, yes, what happens when this excellent news was published, we were off-line .. Thank you.

  3.   mitcoes said

    I just discovered you and THANK YOU.
    Yesterday I installed the 64-bit LMDE, and I'm getting along fine, but I'm missing 2 little things to discover-

    1– Login as root in graphical mode

    2.- Set VLC as the default video player

    I think I would get it from the preferred applications control panel or by opening with another application / using this application by default. Logged in as root.

    I've done sudo nautilus just in case and nothing at all.

    PS1: In 64 bits if the abckup of the packages works well.
    PS2: I also need to install MAME SDL and the recent wine64 for which I would like a ppa to exist, because configuring programs later does not automatically update them.
    PS3: I am using the AMD beta driver AMD_Catalyst_Preview_driver_OpenGL_4.2_beta_support_8.88.8-x86.x86_64.run, Cocoon, https://getcocoon.com/, to see geolocated series in Firefox, Chrome - which has to be installed -, Firefox Flash aid with 64-bit Flash, Zindus, Qbittorrent, Opera, the aletras.oxt extension and the receinte script to control the excess RAM cache of the task that also deserves a comment from you.

    I look forward to the fifth part of the tutorial with these and / or other suggestions

  4.   EAT WITH said

    Hello!
    One thing, we should change the first link that sends the MintBackup article to this one: https://blog.desdelinux.net/mintbackup-realiza-un-respaldo-de-tus-paquetes/
    I don't know why, it links to a subdirectory "/ wp-content / themes" ...

    1.    KZKG ^ Gaara said

      Done, corrected 😉

  5.   Nahum said

    Hello, since the previous version of LMDE amd64 I have had problems with broken packages and errors when loading repositories, I have tried many solutions and none of them work… I don't know what to do anymore, I wanted to install Gnome-shell and it didn't let me because the package is broken. I saw how to solve the broken packages with commands like: sudo dpkg –purge –force-remove-reinstreq

    and I get the following error:

    dpkg: error: –purge requires at least one package name as a parameter

    Type dpkg –help for help installing and uninstalling packages [*];
    Use `dselect 'or` aptitude' for more friendly package management;
    Type dpkg -Dhelp for a list of dpkg debug settings;
    Type dpkg –force-help for a list of options to force things;
    Type dpkg-deb –help for help on manipulating .deb files;

    Options marked with [*] produce long output,
    Filter it with 'less' or with 'more'!

    if someone can help me with this 🙂