How to downgrade a package via apt-get?












283















How can I downgrade a package to an older version via apt-get?



Other tools are also acceptable but apt-get is preferred.










share|improve this question





























    283















    How can I downgrade a package to an older version via apt-get?



    Other tools are also acceptable but apt-get is preferred.










    share|improve this question



























      283












      283








      283


      96






      How can I downgrade a package to an older version via apt-get?



      Other tools are also acceptable but apt-get is preferred.










      share|improve this question
















      How can I downgrade a package to an older version via apt-get?



      Other tools are also acceptable but apt-get is preferred.







      apt package-management downgrade versions






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 30 '17 at 12:16









      Zanna

      50.6k13135241




      50.6k13135241










      asked May 17 '12 at 9:04







      user61928





























          6 Answers
          6






          active

          oldest

          votes


















          274














          If you have the version number, or the target release, apt-get supports choosing a particular version or target release. More details can be found on manual page of apt-get. It can also be accessed from terminal by typing man apt-get



          sudo apt-get install <package-name>=<package-version-number> OR



          sudo apt-get -t=<target release> install <package-name>



          is the command to be run. This can be used to down-grade a package to a specific version.



          It has been helpfully pointed out in the comments that





          • apt-cache showpkg <package-name> lists all available versions. (h/t Sparhawk)


          • apt-mark hold <package-name> "holds" the package at the current version, preventing automatic upgrades. (h/t Luís de Sousa )






          share|improve this answer





















          • 51





            Also, use apt-cache showpkg <package-name> to list available versions.

            – Sparhawk
            Apr 2 '13 at 20:42






          • 13





            And afterwards you might also wish to run: apt-mark hold <package-name> in order to avoid automatic upgrades.

            – Luís de Sousa
            Apr 17 '15 at 7:42






          • 3





            I found that aptitude downgraded the dependencies better than apt-get.

            – krispy
            Mar 1 '16 at 17:25






          • 5





            apt-cache policy <package-name> shows just the installed and available versions

            – Michael Lawton
            Aug 13 '16 at 20:56






          • 10





            And what if showpkg does not show the version you are interested in?

            – demongolem
            Jun 20 '17 at 15:41



















          98














          USE



          apt-get install «pkg»=«version»



          OR



          sudo aptitude install «pkg»=«version»



          Where «pkg» is the name of the package, and «version» is the version number.






          share|improve this answer





















          • 2





            when i type apt-get install pkg=version apt-get offers removing almost half of all installed packages which of course not what i want to do

            – Dfr
            Jul 15 '15 at 8:38











          • As pointed in the (otherwise identical) answer with more votes, this seems to be one of the key cases where aptitude does a much better job than apt-get. In my case apt-getflatly refused the downgrade request, whereas aptitude pointed out that there were other pkgs which depended on the newer version (and thus needed downgrading at the same time).

            – sxc731
            Apr 12 '18 at 18:02



















          27














          If you have upgraded software using ppa you can downgrade it by using ppa-purge. First you have to install ppa-purge using this code:




          sudo apt-get install ppa-purge




          Then you can remove the ppa using command




          sudo ppa-purge ppa:user/ppa-name




          this will automatically downgrade the software to its original version which shipped with Ubuntu.






          share|improve this answer





















          • 1





            This solution is just unmatched in case the package has dependencies which also have to be downgraded. Thanks!

            – and
            Aug 10 '17 at 10:27



















          10














          To downgrade you have to do a command like



           sudo apt-get install pkg_name=version


          in your terminal.



          In the place of version put the previous version you want to downgrade to.






          share|improve this answer


























          • It doesn't work at least for linux-generic which depends on packages that should be downgraded too. I get paste.ubuntu.com/p/NWSmf2ZwTy

            – mymedia
            Jan 8 at 20:18



















          8














          In my opinion, you should first uninstall or purge the package, like:



          sudo apt-get remove <package>


          or



          sudo apt-get purge <package>


          Then, you may download the version you would like to install and keep it in a folder, say abc.deb in Downloads. Open terminal, move to the folder using cd command and install the previous version using dpkg:



          sudo dpkg -i abc.deb


          Or else, there is a small utility called ppa-purge if you mean to downgrade packages updated via PPAs.



          See this thread: http://www.webupd8.org/2009/12/remove-ppa-repositories-via-command.html






          share|improve this answer





















          • 3





            removing a package may remove many dependent ones, resulting in an unusable system. ppapurge sounds interesting though.

            – type
            May 20 '12 at 19:04






          • 11





            Can you explain why you believe we ought to first uninstall packages (as a separate step) before installing older versions of them?

            – Eliah Kagan
            Oct 4 '12 at 20:48











          • permalink.gmane.org/gmane.comp.sysutils.puppet.devel/23219

            – temoto
            Oct 1 '13 at 6:10






          • 1





            @temoto that link is for downgrading releases unstable -> testing -> stable not to downgrade individual packages.

            – Braiam
            Oct 9 '13 at 17:50



















          0














          This question is old but google led me here and I didn't found simple soulution that don't require manual version passing when downgrading bunch of packages to older release.



          So maybe someone who also need that will find useful my solution too.



          There is a tool called apt-show-versions that shows versions installed.



          You can easily downgrade all required packages by fine-tuning regex but here it is:



          $ sudo apt-get install $(apt-show-versions | grep -P 'newer than version in archive' | awk -F: '{print $1"/jessie"}')


          Instead of jessie you can use buster/xenial/etc depending on your needs.






          share|improve this answer






























            6 Answers
            6






            active

            oldest

            votes








            6 Answers
            6






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            274














            If you have the version number, or the target release, apt-get supports choosing a particular version or target release. More details can be found on manual page of apt-get. It can also be accessed from terminal by typing man apt-get



            sudo apt-get install <package-name>=<package-version-number> OR



            sudo apt-get -t=<target release> install <package-name>



            is the command to be run. This can be used to down-grade a package to a specific version.



            It has been helpfully pointed out in the comments that





            • apt-cache showpkg <package-name> lists all available versions. (h/t Sparhawk)


            • apt-mark hold <package-name> "holds" the package at the current version, preventing automatic upgrades. (h/t Luís de Sousa )






            share|improve this answer





















            • 51





              Also, use apt-cache showpkg <package-name> to list available versions.

              – Sparhawk
              Apr 2 '13 at 20:42






            • 13





              And afterwards you might also wish to run: apt-mark hold <package-name> in order to avoid automatic upgrades.

              – Luís de Sousa
              Apr 17 '15 at 7:42






            • 3





              I found that aptitude downgraded the dependencies better than apt-get.

              – krispy
              Mar 1 '16 at 17:25






            • 5





              apt-cache policy <package-name> shows just the installed and available versions

              – Michael Lawton
              Aug 13 '16 at 20:56






            • 10





              And what if showpkg does not show the version you are interested in?

              – demongolem
              Jun 20 '17 at 15:41
















            274














            If you have the version number, or the target release, apt-get supports choosing a particular version or target release. More details can be found on manual page of apt-get. It can also be accessed from terminal by typing man apt-get



            sudo apt-get install <package-name>=<package-version-number> OR



            sudo apt-get -t=<target release> install <package-name>



            is the command to be run. This can be used to down-grade a package to a specific version.



            It has been helpfully pointed out in the comments that





            • apt-cache showpkg <package-name> lists all available versions. (h/t Sparhawk)


            • apt-mark hold <package-name> "holds" the package at the current version, preventing automatic upgrades. (h/t Luís de Sousa )






            share|improve this answer





















            • 51





              Also, use apt-cache showpkg <package-name> to list available versions.

              – Sparhawk
              Apr 2 '13 at 20:42






            • 13





              And afterwards you might also wish to run: apt-mark hold <package-name> in order to avoid automatic upgrades.

              – Luís de Sousa
              Apr 17 '15 at 7:42






            • 3





              I found that aptitude downgraded the dependencies better than apt-get.

              – krispy
              Mar 1 '16 at 17:25






            • 5





              apt-cache policy <package-name> shows just the installed and available versions

              – Michael Lawton
              Aug 13 '16 at 20:56






            • 10





              And what if showpkg does not show the version you are interested in?

              – demongolem
              Jun 20 '17 at 15:41














            274












            274








            274







            If you have the version number, or the target release, apt-get supports choosing a particular version or target release. More details can be found on manual page of apt-get. It can also be accessed from terminal by typing man apt-get



            sudo apt-get install <package-name>=<package-version-number> OR



            sudo apt-get -t=<target release> install <package-name>



            is the command to be run. This can be used to down-grade a package to a specific version.



            It has been helpfully pointed out in the comments that





            • apt-cache showpkg <package-name> lists all available versions. (h/t Sparhawk)


            • apt-mark hold <package-name> "holds" the package at the current version, preventing automatic upgrades. (h/t Luís de Sousa )






            share|improve this answer















            If you have the version number, or the target release, apt-get supports choosing a particular version or target release. More details can be found on manual page of apt-get. It can also be accessed from terminal by typing man apt-get



            sudo apt-get install <package-name>=<package-version-number> OR



            sudo apt-get -t=<target release> install <package-name>



            is the command to be run. This can be used to down-grade a package to a specific version.



            It has been helpfully pointed out in the comments that





            • apt-cache showpkg <package-name> lists all available versions. (h/t Sparhawk)


            • apt-mark hold <package-name> "holds" the package at the current version, preventing automatic upgrades. (h/t Luís de Sousa )







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 13 '17 at 12:24









            Community

            1




            1










            answered May 17 '12 at 10:25









            MaheshMahesh

            10.2k43654




            10.2k43654








            • 51





              Also, use apt-cache showpkg <package-name> to list available versions.

              – Sparhawk
              Apr 2 '13 at 20:42






            • 13





              And afterwards you might also wish to run: apt-mark hold <package-name> in order to avoid automatic upgrades.

              – Luís de Sousa
              Apr 17 '15 at 7:42






            • 3





              I found that aptitude downgraded the dependencies better than apt-get.

              – krispy
              Mar 1 '16 at 17:25






            • 5





              apt-cache policy <package-name> shows just the installed and available versions

              – Michael Lawton
              Aug 13 '16 at 20:56






            • 10





              And what if showpkg does not show the version you are interested in?

              – demongolem
              Jun 20 '17 at 15:41














            • 51





              Also, use apt-cache showpkg <package-name> to list available versions.

              – Sparhawk
              Apr 2 '13 at 20:42






            • 13





              And afterwards you might also wish to run: apt-mark hold <package-name> in order to avoid automatic upgrades.

              – Luís de Sousa
              Apr 17 '15 at 7:42






            • 3





              I found that aptitude downgraded the dependencies better than apt-get.

              – krispy
              Mar 1 '16 at 17:25






            • 5





              apt-cache policy <package-name> shows just the installed and available versions

              – Michael Lawton
              Aug 13 '16 at 20:56






            • 10





              And what if showpkg does not show the version you are interested in?

              – demongolem
              Jun 20 '17 at 15:41








            51




            51





            Also, use apt-cache showpkg <package-name> to list available versions.

            – Sparhawk
            Apr 2 '13 at 20:42





            Also, use apt-cache showpkg <package-name> to list available versions.

            – Sparhawk
            Apr 2 '13 at 20:42




            13




            13





            And afterwards you might also wish to run: apt-mark hold <package-name> in order to avoid automatic upgrades.

            – Luís de Sousa
            Apr 17 '15 at 7:42





            And afterwards you might also wish to run: apt-mark hold <package-name> in order to avoid automatic upgrades.

            – Luís de Sousa
            Apr 17 '15 at 7:42




            3




            3





            I found that aptitude downgraded the dependencies better than apt-get.

            – krispy
            Mar 1 '16 at 17:25





            I found that aptitude downgraded the dependencies better than apt-get.

            – krispy
            Mar 1 '16 at 17:25




            5




            5





            apt-cache policy <package-name> shows just the installed and available versions

            – Michael Lawton
            Aug 13 '16 at 20:56





            apt-cache policy <package-name> shows just the installed and available versions

            – Michael Lawton
            Aug 13 '16 at 20:56




            10




            10





            And what if showpkg does not show the version you are interested in?

            – demongolem
            Jun 20 '17 at 15:41





            And what if showpkg does not show the version you are interested in?

            – demongolem
            Jun 20 '17 at 15:41













            98














            USE



            apt-get install «pkg»=«version»



            OR



            sudo aptitude install «pkg»=«version»



            Where «pkg» is the name of the package, and «version» is the version number.






            share|improve this answer





















            • 2





              when i type apt-get install pkg=version apt-get offers removing almost half of all installed packages which of course not what i want to do

              – Dfr
              Jul 15 '15 at 8:38











            • As pointed in the (otherwise identical) answer with more votes, this seems to be one of the key cases where aptitude does a much better job than apt-get. In my case apt-getflatly refused the downgrade request, whereas aptitude pointed out that there were other pkgs which depended on the newer version (and thus needed downgrading at the same time).

              – sxc731
              Apr 12 '18 at 18:02
















            98














            USE



            apt-get install «pkg»=«version»



            OR



            sudo aptitude install «pkg»=«version»



            Where «pkg» is the name of the package, and «version» is the version number.






            share|improve this answer





















            • 2





              when i type apt-get install pkg=version apt-get offers removing almost half of all installed packages which of course not what i want to do

              – Dfr
              Jul 15 '15 at 8:38











            • As pointed in the (otherwise identical) answer with more votes, this seems to be one of the key cases where aptitude does a much better job than apt-get. In my case apt-getflatly refused the downgrade request, whereas aptitude pointed out that there were other pkgs which depended on the newer version (and thus needed downgrading at the same time).

              – sxc731
              Apr 12 '18 at 18:02














            98












            98








            98







            USE



            apt-get install «pkg»=«version»



            OR



            sudo aptitude install «pkg»=«version»



            Where «pkg» is the name of the package, and «version» is the version number.






            share|improve this answer















            USE



            apt-get install «pkg»=«version»



            OR



            sudo aptitude install «pkg»=«version»



            Where «pkg» is the name of the package, and «version» is the version number.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Dec 12 '15 at 21:40









            danorton

            23329




            23329










            answered Sep 20 '12 at 14:37







            user91632















            • 2





              when i type apt-get install pkg=version apt-get offers removing almost half of all installed packages which of course not what i want to do

              – Dfr
              Jul 15 '15 at 8:38











            • As pointed in the (otherwise identical) answer with more votes, this seems to be one of the key cases where aptitude does a much better job than apt-get. In my case apt-getflatly refused the downgrade request, whereas aptitude pointed out that there were other pkgs which depended on the newer version (and thus needed downgrading at the same time).

              – sxc731
              Apr 12 '18 at 18:02














            • 2





              when i type apt-get install pkg=version apt-get offers removing almost half of all installed packages which of course not what i want to do

              – Dfr
              Jul 15 '15 at 8:38











            • As pointed in the (otherwise identical) answer with more votes, this seems to be one of the key cases where aptitude does a much better job than apt-get. In my case apt-getflatly refused the downgrade request, whereas aptitude pointed out that there were other pkgs which depended on the newer version (and thus needed downgrading at the same time).

              – sxc731
              Apr 12 '18 at 18:02








            2




            2





            when i type apt-get install pkg=version apt-get offers removing almost half of all installed packages which of course not what i want to do

            – Dfr
            Jul 15 '15 at 8:38





            when i type apt-get install pkg=version apt-get offers removing almost half of all installed packages which of course not what i want to do

            – Dfr
            Jul 15 '15 at 8:38













            As pointed in the (otherwise identical) answer with more votes, this seems to be one of the key cases where aptitude does a much better job than apt-get. In my case apt-getflatly refused the downgrade request, whereas aptitude pointed out that there were other pkgs which depended on the newer version (and thus needed downgrading at the same time).

            – sxc731
            Apr 12 '18 at 18:02





            As pointed in the (otherwise identical) answer with more votes, this seems to be one of the key cases where aptitude does a much better job than apt-get. In my case apt-getflatly refused the downgrade request, whereas aptitude pointed out that there were other pkgs which depended on the newer version (and thus needed downgrading at the same time).

            – sxc731
            Apr 12 '18 at 18:02











            27














            If you have upgraded software using ppa you can downgrade it by using ppa-purge. First you have to install ppa-purge using this code:




            sudo apt-get install ppa-purge




            Then you can remove the ppa using command




            sudo ppa-purge ppa:user/ppa-name




            this will automatically downgrade the software to its original version which shipped with Ubuntu.






            share|improve this answer





















            • 1





              This solution is just unmatched in case the package has dependencies which also have to be downgraded. Thanks!

              – and
              Aug 10 '17 at 10:27
















            27














            If you have upgraded software using ppa you can downgrade it by using ppa-purge. First you have to install ppa-purge using this code:




            sudo apt-get install ppa-purge




            Then you can remove the ppa using command




            sudo ppa-purge ppa:user/ppa-name




            this will automatically downgrade the software to its original version which shipped with Ubuntu.






            share|improve this answer





















            • 1





              This solution is just unmatched in case the package has dependencies which also have to be downgraded. Thanks!

              – and
              Aug 10 '17 at 10:27














            27












            27








            27







            If you have upgraded software using ppa you can downgrade it by using ppa-purge. First you have to install ppa-purge using this code:




            sudo apt-get install ppa-purge




            Then you can remove the ppa using command




            sudo ppa-purge ppa:user/ppa-name




            this will automatically downgrade the software to its original version which shipped with Ubuntu.






            share|improve this answer















            If you have upgraded software using ppa you can downgrade it by using ppa-purge. First you have to install ppa-purge using this code:




            sudo apt-get install ppa-purge




            Then you can remove the ppa using command




            sudo ppa-purge ppa:user/ppa-name




            this will automatically downgrade the software to its original version which shipped with Ubuntu.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jul 24 '13 at 18:36









            Mark Stosberg

            2,20911526




            2,20911526










            answered Oct 16 '12 at 7:11









            ApurbaApurba

            84821026




            84821026








            • 1





              This solution is just unmatched in case the package has dependencies which also have to be downgraded. Thanks!

              – and
              Aug 10 '17 at 10:27














            • 1





              This solution is just unmatched in case the package has dependencies which also have to be downgraded. Thanks!

              – and
              Aug 10 '17 at 10:27








            1




            1





            This solution is just unmatched in case the package has dependencies which also have to be downgraded. Thanks!

            – and
            Aug 10 '17 at 10:27





            This solution is just unmatched in case the package has dependencies which also have to be downgraded. Thanks!

            – and
            Aug 10 '17 at 10:27











            10














            To downgrade you have to do a command like



             sudo apt-get install pkg_name=version


            in your terminal.



            In the place of version put the previous version you want to downgrade to.






            share|improve this answer


























            • It doesn't work at least for linux-generic which depends on packages that should be downgraded too. I get paste.ubuntu.com/p/NWSmf2ZwTy

              – mymedia
              Jan 8 at 20:18
















            10














            To downgrade you have to do a command like



             sudo apt-get install pkg_name=version


            in your terminal.



            In the place of version put the previous version you want to downgrade to.






            share|improve this answer


























            • It doesn't work at least for linux-generic which depends on packages that should be downgraded too. I get paste.ubuntu.com/p/NWSmf2ZwTy

              – mymedia
              Jan 8 at 20:18














            10












            10








            10







            To downgrade you have to do a command like



             sudo apt-get install pkg_name=version


            in your terminal.



            In the place of version put the previous version you want to downgrade to.






            share|improve this answer















            To downgrade you have to do a command like



             sudo apt-get install pkg_name=version


            in your terminal.



            In the place of version put the previous version you want to downgrade to.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Oct 4 '12 at 20:49









            Eliah Kagan

            81.9k21227364




            81.9k21227364










            answered May 17 '12 at 9:16









            rɑːdʒɑrɑːdʒɑ

            57.5k85217301




            57.5k85217301













            • It doesn't work at least for linux-generic which depends on packages that should be downgraded too. I get paste.ubuntu.com/p/NWSmf2ZwTy

              – mymedia
              Jan 8 at 20:18



















            • It doesn't work at least for linux-generic which depends on packages that should be downgraded too. I get paste.ubuntu.com/p/NWSmf2ZwTy

              – mymedia
              Jan 8 at 20:18

















            It doesn't work at least for linux-generic which depends on packages that should be downgraded too. I get paste.ubuntu.com/p/NWSmf2ZwTy

            – mymedia
            Jan 8 at 20:18





            It doesn't work at least for linux-generic which depends on packages that should be downgraded too. I get paste.ubuntu.com/p/NWSmf2ZwTy

            – mymedia
            Jan 8 at 20:18











            8














            In my opinion, you should first uninstall or purge the package, like:



            sudo apt-get remove <package>


            or



            sudo apt-get purge <package>


            Then, you may download the version you would like to install and keep it in a folder, say abc.deb in Downloads. Open terminal, move to the folder using cd command and install the previous version using dpkg:



            sudo dpkg -i abc.deb


            Or else, there is a small utility called ppa-purge if you mean to downgrade packages updated via PPAs.



            See this thread: http://www.webupd8.org/2009/12/remove-ppa-repositories-via-command.html






            share|improve this answer





















            • 3





              removing a package may remove many dependent ones, resulting in an unusable system. ppapurge sounds interesting though.

              – type
              May 20 '12 at 19:04






            • 11





              Can you explain why you believe we ought to first uninstall packages (as a separate step) before installing older versions of them?

              – Eliah Kagan
              Oct 4 '12 at 20:48











            • permalink.gmane.org/gmane.comp.sysutils.puppet.devel/23219

              – temoto
              Oct 1 '13 at 6:10






            • 1





              @temoto that link is for downgrading releases unstable -> testing -> stable not to downgrade individual packages.

              – Braiam
              Oct 9 '13 at 17:50
















            8














            In my opinion, you should first uninstall or purge the package, like:



            sudo apt-get remove <package>


            or



            sudo apt-get purge <package>


            Then, you may download the version you would like to install and keep it in a folder, say abc.deb in Downloads. Open terminal, move to the folder using cd command and install the previous version using dpkg:



            sudo dpkg -i abc.deb


            Or else, there is a small utility called ppa-purge if you mean to downgrade packages updated via PPAs.



            See this thread: http://www.webupd8.org/2009/12/remove-ppa-repositories-via-command.html






            share|improve this answer





















            • 3





              removing a package may remove many dependent ones, resulting in an unusable system. ppapurge sounds interesting though.

              – type
              May 20 '12 at 19:04






            • 11





              Can you explain why you believe we ought to first uninstall packages (as a separate step) before installing older versions of them?

              – Eliah Kagan
              Oct 4 '12 at 20:48











            • permalink.gmane.org/gmane.comp.sysutils.puppet.devel/23219

              – temoto
              Oct 1 '13 at 6:10






            • 1





              @temoto that link is for downgrading releases unstable -> testing -> stable not to downgrade individual packages.

              – Braiam
              Oct 9 '13 at 17:50














            8












            8








            8







            In my opinion, you should first uninstall or purge the package, like:



            sudo apt-get remove <package>


            or



            sudo apt-get purge <package>


            Then, you may download the version you would like to install and keep it in a folder, say abc.deb in Downloads. Open terminal, move to the folder using cd command and install the previous version using dpkg:



            sudo dpkg -i abc.deb


            Or else, there is a small utility called ppa-purge if you mean to downgrade packages updated via PPAs.



            See this thread: http://www.webupd8.org/2009/12/remove-ppa-repositories-via-command.html






            share|improve this answer















            In my opinion, you should first uninstall or purge the package, like:



            sudo apt-get remove <package>


            or



            sudo apt-get purge <package>


            Then, you may download the version you would like to install and keep it in a folder, say abc.deb in Downloads. Open terminal, move to the folder using cd command and install the previous version using dpkg:



            sudo dpkg -i abc.deb


            Or else, there is a small utility called ppa-purge if you mean to downgrade packages updated via PPAs.



            See this thread: http://www.webupd8.org/2009/12/remove-ppa-repositories-via-command.html







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Oct 10 '12 at 5:02







            user61928

















            answered May 17 '12 at 10:10









            TheeternalflameTheeternalflame

            44524




            44524








            • 3





              removing a package may remove many dependent ones, resulting in an unusable system. ppapurge sounds interesting though.

              – type
              May 20 '12 at 19:04






            • 11





              Can you explain why you believe we ought to first uninstall packages (as a separate step) before installing older versions of them?

              – Eliah Kagan
              Oct 4 '12 at 20:48











            • permalink.gmane.org/gmane.comp.sysutils.puppet.devel/23219

              – temoto
              Oct 1 '13 at 6:10






            • 1





              @temoto that link is for downgrading releases unstable -> testing -> stable not to downgrade individual packages.

              – Braiam
              Oct 9 '13 at 17:50














            • 3





              removing a package may remove many dependent ones, resulting in an unusable system. ppapurge sounds interesting though.

              – type
              May 20 '12 at 19:04






            • 11





              Can you explain why you believe we ought to first uninstall packages (as a separate step) before installing older versions of them?

              – Eliah Kagan
              Oct 4 '12 at 20:48











            • permalink.gmane.org/gmane.comp.sysutils.puppet.devel/23219

              – temoto
              Oct 1 '13 at 6:10






            • 1





              @temoto that link is for downgrading releases unstable -> testing -> stable not to downgrade individual packages.

              – Braiam
              Oct 9 '13 at 17:50








            3




            3





            removing a package may remove many dependent ones, resulting in an unusable system. ppapurge sounds interesting though.

            – type
            May 20 '12 at 19:04





            removing a package may remove many dependent ones, resulting in an unusable system. ppapurge sounds interesting though.

            – type
            May 20 '12 at 19:04




            11




            11





            Can you explain why you believe we ought to first uninstall packages (as a separate step) before installing older versions of them?

            – Eliah Kagan
            Oct 4 '12 at 20:48





            Can you explain why you believe we ought to first uninstall packages (as a separate step) before installing older versions of them?

            – Eliah Kagan
            Oct 4 '12 at 20:48













            permalink.gmane.org/gmane.comp.sysutils.puppet.devel/23219

            – temoto
            Oct 1 '13 at 6:10





            permalink.gmane.org/gmane.comp.sysutils.puppet.devel/23219

            – temoto
            Oct 1 '13 at 6:10




            1




            1





            @temoto that link is for downgrading releases unstable -> testing -> stable not to downgrade individual packages.

            – Braiam
            Oct 9 '13 at 17:50





            @temoto that link is for downgrading releases unstable -> testing -> stable not to downgrade individual packages.

            – Braiam
            Oct 9 '13 at 17:50











            0














            This question is old but google led me here and I didn't found simple soulution that don't require manual version passing when downgrading bunch of packages to older release.



            So maybe someone who also need that will find useful my solution too.



            There is a tool called apt-show-versions that shows versions installed.



            You can easily downgrade all required packages by fine-tuning regex but here it is:



            $ sudo apt-get install $(apt-show-versions | grep -P 'newer than version in archive' | awk -F: '{print $1"/jessie"}')


            Instead of jessie you can use buster/xenial/etc depending on your needs.






            share|improve this answer




























              0














              This question is old but google led me here and I didn't found simple soulution that don't require manual version passing when downgrading bunch of packages to older release.



              So maybe someone who also need that will find useful my solution too.



              There is a tool called apt-show-versions that shows versions installed.



              You can easily downgrade all required packages by fine-tuning regex but here it is:



              $ sudo apt-get install $(apt-show-versions | grep -P 'newer than version in archive' | awk -F: '{print $1"/jessie"}')


              Instead of jessie you can use buster/xenial/etc depending on your needs.






              share|improve this answer


























                0












                0








                0







                This question is old but google led me here and I didn't found simple soulution that don't require manual version passing when downgrading bunch of packages to older release.



                So maybe someone who also need that will find useful my solution too.



                There is a tool called apt-show-versions that shows versions installed.



                You can easily downgrade all required packages by fine-tuning regex but here it is:



                $ sudo apt-get install $(apt-show-versions | grep -P 'newer than version in archive' | awk -F: '{print $1"/jessie"}')


                Instead of jessie you can use buster/xenial/etc depending on your needs.






                share|improve this answer













                This question is old but google led me here and I didn't found simple soulution that don't require manual version passing when downgrading bunch of packages to older release.



                So maybe someone who also need that will find useful my solution too.



                There is a tool called apt-show-versions that shows versions installed.



                You can easily downgrade all required packages by fine-tuning regex but here it is:



                $ sudo apt-get install $(apt-show-versions | grep -P 'newer than version in archive' | awk -F: '{print $1"/jessie"}')


                Instead of jessie you can use buster/xenial/etc depending on your needs.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 23 at 22:40









                gudvinrgudvinr

                215




                215















                    Popular posts from this blog

                    數位音樂下載

                    When can things happen in Etherscan, such as the picture below?

                    格利澤436b