Coder Social home page Coder Social logo

Comments (11)

drybjed avatar drybjed commented on August 23, 2024

Good idea. I actually have a playbook that would do this - switch all APT sources from wheezy to jessie. Then an automatic apt dist-upgrade could be performed as an optional step. I'll look for it and include in the tools/ directory.

from debops-playbooks.

 avatar commented on August 23, 2024

Would this be the right way to handle this rather than running do-release-upgrade? -- do-release-upgrade deletes obsolete libraries and I'm guessing a bunch of other cleanup?

from debops-playbooks.

drybjed avatar drybjed commented on August 23, 2024

@Hackeron Sure. It's just that do-release-upgrade is Ubuntu specific. :-) I can look into using it on Ubuntu systems, of course.

from debops-playbooks.

 avatar commented on August 23, 2024

No do-release-upgrade for ubuntu users? :(

from debops-playbooks.

drybjed avatar drybjed commented on August 23, 2024

@Hackeron I'm not sure yet how exactly it works. I'll check on a spare Ubuntu VM first, unless you maybe know if it operates non-interactively and leaves the system in a workable state?

from debops-playbooks.

 avatar commented on August 23, 2024

In my script I run:

apt-get install update-manager-core
do-release-upgrade -f DistUpgradeViewNonInteractive

To ensure it doesn't ask any questions :)

from debops-playbooks.

drybjed avatar drybjed commented on August 23, 2024

@Hackeron do-release-upgrade steps are described in this AskUbuntu post. What I see is that do-release-upgrade basically does the same thing (and more) as the dist-upgrade.yml playbook. :-)

Are above commands all the steps you need to do the upgrade?

from debops-playbooks.

 avatar commented on August 23, 2024

Yep, it seems to be quite good at removing anything obselete :) - yep, the above steps is what I've used for years and it never fails to update and it never asks any questions with "-f DistUpgradeViewNonInteractive" :)

from debops-playbooks.

drybjed avatar drybjed commented on August 23, 2024

@Hackeron In that cast most of dist-upgrade could be discarded for Ubuntu... Does do-release-upgrade have any output to capture and send to the admin?

from debops-playbooks.

 avatar commented on August 23, 2024

What do you mean discarded? - it seems to do quite a lot of useful stuff. Yes, it gives the output from everything it does, like running apt internally, etc.

from debops-playbooks.

drybjed avatar drybjed commented on August 23, 2024

@Hackeron do-release-upgrade handles APT sources, runs apt-get update, upgrades packages, removes APT preferences for backports... All you would be interested in is probably the last task which sends an email with output to administrator. :)

from debops-playbooks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.