How to fully upgrade Debian from command line (including release_version)?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
-1
down vote

favorite












I desire to totally upgrade everything in Debian:Stable including the release version, to the newest stable release available:



  • Packages update

  • Packages upgrade

  • D:S minor_version

  • D:S major_version

  • D:S release_version

Each action will be done respective to others in that entire recursive (monthly/yearly) single process, while I assume that release_version will surly be the last.



In other words, I'd like to create a "fully rolling release stable Debian".



I do it when having at least weekly/daily automatic backups (per month) of all the data so if something was broken I restore a backup.



What will be the command to "brutally" upgrade everything whatsoever including doing a release upgrade? I was thinking about:



apt-get update -y && apt-get upgrade -y && apt-get dist-upgrade -y









share|improve this question























  • Not sure what the problem is. Is the Debian reporting that not all is up to date?
    – Michael Prokopec
    Dec 10 at 2:07










  • No, but AFAIK, Debian stable never gets a release upgrade (only minor and major upgrades) as it is not a full rolling-release distro (like ArchLinux).
    – JohnDoea
    Dec 10 at 2:28










  • Depends on what is in your /etc/apt/sources.list file (and anything under that that is included as well). If you have a release name - jessie, wheezy etc it is slightly different than if you have a release descriptor (stable, testing or unstable).
    – ivanivan
    Dec 10 at 4:45










  • @ivanivan please see my comment to the answer --- basically I need a release_version-agnostic way to totally upgrade Debian (minor, major, and release_upgrade).
    – JohnDoea
    Dec 10 at 7:12










  • Closed as too broad? Now it's narrower?... What's so "broad" here. I swear I miss that...
    – JohnDoea
    Dec 10 at 19:21














up vote
-1
down vote

favorite












I desire to totally upgrade everything in Debian:Stable including the release version, to the newest stable release available:



  • Packages update

  • Packages upgrade

  • D:S minor_version

  • D:S major_version

  • D:S release_version

Each action will be done respective to others in that entire recursive (monthly/yearly) single process, while I assume that release_version will surly be the last.



In other words, I'd like to create a "fully rolling release stable Debian".



I do it when having at least weekly/daily automatic backups (per month) of all the data so if something was broken I restore a backup.



What will be the command to "brutally" upgrade everything whatsoever including doing a release upgrade? I was thinking about:



apt-get update -y && apt-get upgrade -y && apt-get dist-upgrade -y









share|improve this question























  • Not sure what the problem is. Is the Debian reporting that not all is up to date?
    – Michael Prokopec
    Dec 10 at 2:07










  • No, but AFAIK, Debian stable never gets a release upgrade (only minor and major upgrades) as it is not a full rolling-release distro (like ArchLinux).
    – JohnDoea
    Dec 10 at 2:28










  • Depends on what is in your /etc/apt/sources.list file (and anything under that that is included as well). If you have a release name - jessie, wheezy etc it is slightly different than if you have a release descriptor (stable, testing or unstable).
    – ivanivan
    Dec 10 at 4:45










  • @ivanivan please see my comment to the answer --- basically I need a release_version-agnostic way to totally upgrade Debian (minor, major, and release_upgrade).
    – JohnDoea
    Dec 10 at 7:12










  • Closed as too broad? Now it's narrower?... What's so "broad" here. I swear I miss that...
    – JohnDoea
    Dec 10 at 19:21












up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











I desire to totally upgrade everything in Debian:Stable including the release version, to the newest stable release available:



  • Packages update

  • Packages upgrade

  • D:S minor_version

  • D:S major_version

  • D:S release_version

Each action will be done respective to others in that entire recursive (monthly/yearly) single process, while I assume that release_version will surly be the last.



In other words, I'd like to create a "fully rolling release stable Debian".



I do it when having at least weekly/daily automatic backups (per month) of all the data so if something was broken I restore a backup.



What will be the command to "brutally" upgrade everything whatsoever including doing a release upgrade? I was thinking about:



apt-get update -y && apt-get upgrade -y && apt-get dist-upgrade -y









share|improve this question















I desire to totally upgrade everything in Debian:Stable including the release version, to the newest stable release available:



  • Packages update

  • Packages upgrade

  • D:S minor_version

  • D:S major_version

  • D:S release_version

Each action will be done respective to others in that entire recursive (monthly/yearly) single process, while I assume that release_version will surly be the last.



In other words, I'd like to create a "fully rolling release stable Debian".



I do it when having at least weekly/daily automatic backups (per month) of all the data so if something was broken I restore a backup.



What will be the command to "brutally" upgrade everything whatsoever including doing a release upgrade? I was thinking about:



apt-get update -y && apt-get upgrade -y && apt-get dist-upgrade -y






debian apt upgrade software-updates rolling-release






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 10 at 19:21

























asked Dec 10 at 1:30









JohnDoea

1151132




1151132











  • Not sure what the problem is. Is the Debian reporting that not all is up to date?
    – Michael Prokopec
    Dec 10 at 2:07










  • No, but AFAIK, Debian stable never gets a release upgrade (only minor and major upgrades) as it is not a full rolling-release distro (like ArchLinux).
    – JohnDoea
    Dec 10 at 2:28










  • Depends on what is in your /etc/apt/sources.list file (and anything under that that is included as well). If you have a release name - jessie, wheezy etc it is slightly different than if you have a release descriptor (stable, testing or unstable).
    – ivanivan
    Dec 10 at 4:45










  • @ivanivan please see my comment to the answer --- basically I need a release_version-agnostic way to totally upgrade Debian (minor, major, and release_upgrade).
    – JohnDoea
    Dec 10 at 7:12










  • Closed as too broad? Now it's narrower?... What's so "broad" here. I swear I miss that...
    – JohnDoea
    Dec 10 at 19:21
















  • Not sure what the problem is. Is the Debian reporting that not all is up to date?
    – Michael Prokopec
    Dec 10 at 2:07










  • No, but AFAIK, Debian stable never gets a release upgrade (only minor and major upgrades) as it is not a full rolling-release distro (like ArchLinux).
    – JohnDoea
    Dec 10 at 2:28










  • Depends on what is in your /etc/apt/sources.list file (and anything under that that is included as well). If you have a release name - jessie, wheezy etc it is slightly different than if you have a release descriptor (stable, testing or unstable).
    – ivanivan
    Dec 10 at 4:45










  • @ivanivan please see my comment to the answer --- basically I need a release_version-agnostic way to totally upgrade Debian (minor, major, and release_upgrade).
    – JohnDoea
    Dec 10 at 7:12










  • Closed as too broad? Now it's narrower?... What's so "broad" here. I swear I miss that...
    – JohnDoea
    Dec 10 at 19:21















Not sure what the problem is. Is the Debian reporting that not all is up to date?
– Michael Prokopec
Dec 10 at 2:07




Not sure what the problem is. Is the Debian reporting that not all is up to date?
– Michael Prokopec
Dec 10 at 2:07












No, but AFAIK, Debian stable never gets a release upgrade (only minor and major upgrades) as it is not a full rolling-release distro (like ArchLinux).
– JohnDoea
Dec 10 at 2:28




No, but AFAIK, Debian stable never gets a release upgrade (only minor and major upgrades) as it is not a full rolling-release distro (like ArchLinux).
– JohnDoea
Dec 10 at 2:28












Depends on what is in your /etc/apt/sources.list file (and anything under that that is included as well). If you have a release name - jessie, wheezy etc it is slightly different than if you have a release descriptor (stable, testing or unstable).
– ivanivan
Dec 10 at 4:45




Depends on what is in your /etc/apt/sources.list file (and anything under that that is included as well). If you have a release name - jessie, wheezy etc it is slightly different than if you have a release descriptor (stable, testing or unstable).
– ivanivan
Dec 10 at 4:45












@ivanivan please see my comment to the answer --- basically I need a release_version-agnostic way to totally upgrade Debian (minor, major, and release_upgrade).
– JohnDoea
Dec 10 at 7:12




@ivanivan please see my comment to the answer --- basically I need a release_version-agnostic way to totally upgrade Debian (minor, major, and release_upgrade).
– JohnDoea
Dec 10 at 7:12












Closed as too broad? Now it's narrower?... What's so "broad" here. I swear I miss that...
– JohnDoea
Dec 10 at 19:21




Closed as too broad? Now it's narrower?... What's so "broad" here. I swear I miss that...
– JohnDoea
Dec 10 at 19:21










1 Answer
1






active

oldest

votes

















up vote
4
down vote



accepted










The Debian operating system is not bleeding edge. It enjoys great stability when installed, on supported hardware. However, as a result, the software that Debian uses and that is in its repo's are slightly older, than those in say, Ubuntu. Even though Ubuntu is Debian based, it is constantly being updated and things are getting tweaked day to day sometimes. If you successfully complete the commands you listed, everything should be up to date and considered the newest stable version. If you are however looking to go from Debian 8 to 9. The process is more involved.



After doing the above commands:




  • If everything went smoothly, perform database sanity and consistency checks for partially installed, missing and obsolete packages:



    dpkg -C



  • If no issues are reported, check what packages are held back:



    apt-mark showhold

    Packages On Hold will not be upgraded, which may cause inconsistencies after Stretch upgrade. Before you move to the next part, it is recommended to fix all issues produced by both above commands.



  • Make backup of your sources.list:



    cp /etc/apt/sources.list /etc/apt/sources.list_backup



  • Change to stretch;



    sed -i 's/jessie/stretch/g' /etc/apt/sources.list



  • Update



    apt-get update



  • List Upgradeable:



    apt list --upgradable 
    Note that if you see anything that alarms you at this point you can undo everything in reverse.


After the following commands there is no undoing:



apt-get upgrade
apt-get dist-upgrade


More information can be found: HERE






share|improve this answer




















  • I thank you and upvoted; I must say I look for a release_version-agnostic way to totally upgrade Debian, that is, without using terms like "Jesse" or "Strech" (or "Buster" in the coming time). Is there a way to make the entire operation release_version agnostic?
    – JohnDoea
    Dec 10 at 6:33










  • I edited the question anyway; not any grandiose edit; just clarifying how I imagine the process be done in a release_version-agnostic way.
    – JohnDoea
    Dec 10 at 7:23










  • Each time you upgrade from one major release to the next, it is important to read the upgrade chapter of the Release Notes of the new release first: it sometimes includes special steps you should take to ensure a seamless upgrade. The "brutal" way mentioned in the edited question is not guaranteed to always work, even though it might usually work.
    – telcoM
    Dec 10 at 7:46










Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f487030%2fhow-to-fully-upgrade-debian-from-command-line-including-release-version%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
4
down vote



accepted










The Debian operating system is not bleeding edge. It enjoys great stability when installed, on supported hardware. However, as a result, the software that Debian uses and that is in its repo's are slightly older, than those in say, Ubuntu. Even though Ubuntu is Debian based, it is constantly being updated and things are getting tweaked day to day sometimes. If you successfully complete the commands you listed, everything should be up to date and considered the newest stable version. If you are however looking to go from Debian 8 to 9. The process is more involved.



After doing the above commands:




  • If everything went smoothly, perform database sanity and consistency checks for partially installed, missing and obsolete packages:



    dpkg -C



  • If no issues are reported, check what packages are held back:



    apt-mark showhold

    Packages On Hold will not be upgraded, which may cause inconsistencies after Stretch upgrade. Before you move to the next part, it is recommended to fix all issues produced by both above commands.



  • Make backup of your sources.list:



    cp /etc/apt/sources.list /etc/apt/sources.list_backup



  • Change to stretch;



    sed -i 's/jessie/stretch/g' /etc/apt/sources.list



  • Update



    apt-get update



  • List Upgradeable:



    apt list --upgradable 
    Note that if you see anything that alarms you at this point you can undo everything in reverse.


After the following commands there is no undoing:



apt-get upgrade
apt-get dist-upgrade


More information can be found: HERE






share|improve this answer




















  • I thank you and upvoted; I must say I look for a release_version-agnostic way to totally upgrade Debian, that is, without using terms like "Jesse" or "Strech" (or "Buster" in the coming time). Is there a way to make the entire operation release_version agnostic?
    – JohnDoea
    Dec 10 at 6:33










  • I edited the question anyway; not any grandiose edit; just clarifying how I imagine the process be done in a release_version-agnostic way.
    – JohnDoea
    Dec 10 at 7:23










  • Each time you upgrade from one major release to the next, it is important to read the upgrade chapter of the Release Notes of the new release first: it sometimes includes special steps you should take to ensure a seamless upgrade. The "brutal" way mentioned in the edited question is not guaranteed to always work, even though it might usually work.
    – telcoM
    Dec 10 at 7:46














up vote
4
down vote



accepted










The Debian operating system is not bleeding edge. It enjoys great stability when installed, on supported hardware. However, as a result, the software that Debian uses and that is in its repo's are slightly older, than those in say, Ubuntu. Even though Ubuntu is Debian based, it is constantly being updated and things are getting tweaked day to day sometimes. If you successfully complete the commands you listed, everything should be up to date and considered the newest stable version. If you are however looking to go from Debian 8 to 9. The process is more involved.



After doing the above commands:




  • If everything went smoothly, perform database sanity and consistency checks for partially installed, missing and obsolete packages:



    dpkg -C



  • If no issues are reported, check what packages are held back:



    apt-mark showhold

    Packages On Hold will not be upgraded, which may cause inconsistencies after Stretch upgrade. Before you move to the next part, it is recommended to fix all issues produced by both above commands.



  • Make backup of your sources.list:



    cp /etc/apt/sources.list /etc/apt/sources.list_backup



  • Change to stretch;



    sed -i 's/jessie/stretch/g' /etc/apt/sources.list



  • Update



    apt-get update



  • List Upgradeable:



    apt list --upgradable 
    Note that if you see anything that alarms you at this point you can undo everything in reverse.


After the following commands there is no undoing:



apt-get upgrade
apt-get dist-upgrade


More information can be found: HERE






share|improve this answer




















  • I thank you and upvoted; I must say I look for a release_version-agnostic way to totally upgrade Debian, that is, without using terms like "Jesse" or "Strech" (or "Buster" in the coming time). Is there a way to make the entire operation release_version agnostic?
    – JohnDoea
    Dec 10 at 6:33










  • I edited the question anyway; not any grandiose edit; just clarifying how I imagine the process be done in a release_version-agnostic way.
    – JohnDoea
    Dec 10 at 7:23










  • Each time you upgrade from one major release to the next, it is important to read the upgrade chapter of the Release Notes of the new release first: it sometimes includes special steps you should take to ensure a seamless upgrade. The "brutal" way mentioned in the edited question is not guaranteed to always work, even though it might usually work.
    – telcoM
    Dec 10 at 7:46












up vote
4
down vote



accepted







up vote
4
down vote



accepted






The Debian operating system is not bleeding edge. It enjoys great stability when installed, on supported hardware. However, as a result, the software that Debian uses and that is in its repo's are slightly older, than those in say, Ubuntu. Even though Ubuntu is Debian based, it is constantly being updated and things are getting tweaked day to day sometimes. If you successfully complete the commands you listed, everything should be up to date and considered the newest stable version. If you are however looking to go from Debian 8 to 9. The process is more involved.



After doing the above commands:




  • If everything went smoothly, perform database sanity and consistency checks for partially installed, missing and obsolete packages:



    dpkg -C



  • If no issues are reported, check what packages are held back:



    apt-mark showhold

    Packages On Hold will not be upgraded, which may cause inconsistencies after Stretch upgrade. Before you move to the next part, it is recommended to fix all issues produced by both above commands.



  • Make backup of your sources.list:



    cp /etc/apt/sources.list /etc/apt/sources.list_backup



  • Change to stretch;



    sed -i 's/jessie/stretch/g' /etc/apt/sources.list



  • Update



    apt-get update



  • List Upgradeable:



    apt list --upgradable 
    Note that if you see anything that alarms you at this point you can undo everything in reverse.


After the following commands there is no undoing:



apt-get upgrade
apt-get dist-upgrade


More information can be found: HERE






share|improve this answer












The Debian operating system is not bleeding edge. It enjoys great stability when installed, on supported hardware. However, as a result, the software that Debian uses and that is in its repo's are slightly older, than those in say, Ubuntu. Even though Ubuntu is Debian based, it is constantly being updated and things are getting tweaked day to day sometimes. If you successfully complete the commands you listed, everything should be up to date and considered the newest stable version. If you are however looking to go from Debian 8 to 9. The process is more involved.



After doing the above commands:




  • If everything went smoothly, perform database sanity and consistency checks for partially installed, missing and obsolete packages:



    dpkg -C



  • If no issues are reported, check what packages are held back:



    apt-mark showhold

    Packages On Hold will not be upgraded, which may cause inconsistencies after Stretch upgrade. Before you move to the next part, it is recommended to fix all issues produced by both above commands.



  • Make backup of your sources.list:



    cp /etc/apt/sources.list /etc/apt/sources.list_backup



  • Change to stretch;



    sed -i 's/jessie/stretch/g' /etc/apt/sources.list



  • Update



    apt-get update



  • List Upgradeable:



    apt list --upgradable 
    Note that if you see anything that alarms you at this point you can undo everything in reverse.


After the following commands there is no undoing:



apt-get upgrade
apt-get dist-upgrade


More information can be found: HERE







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 10 at 2:29









Michael Prokopec

995116




995116











  • I thank you and upvoted; I must say I look for a release_version-agnostic way to totally upgrade Debian, that is, without using terms like "Jesse" or "Strech" (or "Buster" in the coming time). Is there a way to make the entire operation release_version agnostic?
    – JohnDoea
    Dec 10 at 6:33










  • I edited the question anyway; not any grandiose edit; just clarifying how I imagine the process be done in a release_version-agnostic way.
    – JohnDoea
    Dec 10 at 7:23










  • Each time you upgrade from one major release to the next, it is important to read the upgrade chapter of the Release Notes of the new release first: it sometimes includes special steps you should take to ensure a seamless upgrade. The "brutal" way mentioned in the edited question is not guaranteed to always work, even though it might usually work.
    – telcoM
    Dec 10 at 7:46
















  • I thank you and upvoted; I must say I look for a release_version-agnostic way to totally upgrade Debian, that is, without using terms like "Jesse" or "Strech" (or "Buster" in the coming time). Is there a way to make the entire operation release_version agnostic?
    – JohnDoea
    Dec 10 at 6:33










  • I edited the question anyway; not any grandiose edit; just clarifying how I imagine the process be done in a release_version-agnostic way.
    – JohnDoea
    Dec 10 at 7:23










  • Each time you upgrade from one major release to the next, it is important to read the upgrade chapter of the Release Notes of the new release first: it sometimes includes special steps you should take to ensure a seamless upgrade. The "brutal" way mentioned in the edited question is not guaranteed to always work, even though it might usually work.
    – telcoM
    Dec 10 at 7:46















I thank you and upvoted; I must say I look for a release_version-agnostic way to totally upgrade Debian, that is, without using terms like "Jesse" or "Strech" (or "Buster" in the coming time). Is there a way to make the entire operation release_version agnostic?
– JohnDoea
Dec 10 at 6:33




I thank you and upvoted; I must say I look for a release_version-agnostic way to totally upgrade Debian, that is, without using terms like "Jesse" or "Strech" (or "Buster" in the coming time). Is there a way to make the entire operation release_version agnostic?
– JohnDoea
Dec 10 at 6:33












I edited the question anyway; not any grandiose edit; just clarifying how I imagine the process be done in a release_version-agnostic way.
– JohnDoea
Dec 10 at 7:23




I edited the question anyway; not any grandiose edit; just clarifying how I imagine the process be done in a release_version-agnostic way.
– JohnDoea
Dec 10 at 7:23












Each time you upgrade from one major release to the next, it is important to read the upgrade chapter of the Release Notes of the new release first: it sometimes includes special steps you should take to ensure a seamless upgrade. The "brutal" way mentioned in the edited question is not guaranteed to always work, even though it might usually work.
– telcoM
Dec 10 at 7:46




Each time you upgrade from one major release to the next, it is important to read the upgrade chapter of the Release Notes of the new release first: it sometimes includes special steps you should take to ensure a seamless upgrade. The "brutal" way mentioned in the edited question is not guaranteed to always work, even though it might usually work.
– telcoM
Dec 10 at 7:46

















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f487030%2fhow-to-fully-upgrade-debian-from-command-line-including-release-version%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay