Upgrade plasma 5.8 to 5.12 on SolydK 9

Questions specific to the KDE DE go here
greg84
Posts: 14
Joined: 31 Mar 2015 13:49

Upgrade plasma 5.8 to 5.12 on SolydK 9

Postby greg84 » 14 Mar 2018 13:14

Hello everyone!!!


Is it possible execute upgrade plasma 5.8 to plasma 5.12 (both are LTS) on SolydK 9 ?
I do not want to upgrade whole distro to debian-testing.
If is possible, how do it ?


Thank You.

User avatar
ilu
Posts: 1877
Joined: 09 Oct 2013 12:45

Re: Upgrade plasma 5.8 to 5.12 on SolydK 9

Postby ilu » 14 Mar 2018 15:35

I don't use KDE but I'm fairly sure that updating plasma will pull a lot of libraries and it might ruin your system. I would not try to do that to a production system. At least test it in a VM first.

Installing SolydK EE would be the better method, use a separate partition for that so you can keep your SolydK9 system as fallback. grizzler is looking for testers, so please report back how things work out.

greg84
Posts: 14
Joined: 31 Mar 2015 13:49

Re: Upgrade plasma 5.8 to 5.12 on SolydK 9

Postby greg84 » 14 Mar 2018 16:13

Thank you. :)
I will try it on virtual machine. 8-)

But how do it ?
Turn on backports only for plasma ?

User avatar
ilu
Posts: 1877
Joined: 09 Oct 2013 12:45

Re: Upgrade plasma 5.8 to 5.12 on SolydK 9

Postby ilu » 14 Mar 2018 18:54

1. Open your package manager GUI (it's synaptic for me since I'm on SolydX), activate the backports repo and update only the package you want to update. No idea how exactly that's done under KDE.

2. Method if it is not in backports: read this https://forums.solydxk.com/viewtopic.php?f=9&t=7195.

Edit: I checked and plasma is not in backports. That's probably for a reason. Please don't do this on your production system.

kurotsugi
Posts: 2034
Joined: 09 Jan 2014 00:17

Re: Upgrade plasma 5.8 to 5.12 on SolydK 9

Postby kurotsugi » 15 Mar 2018 09:10

something as complex as DE won't get backported :lol:

if you really want to use new plasma, the ethusiast version might be the safest way to get it on debian. the tutorial above is used if you want to mix sid and testing. you won't need that if you only want to get new plasma. unfortunately stable and testing can't be mixed except for several minor stuffs. we got new gcc so it almost guaranteed that it won't work for plasma

greg84
Posts: 14
Joined: 31 Mar 2015 13:49

Re: Upgrade plasma 5.8 to 5.12 on SolydK 9

Postby greg84 » 15 Mar 2018 10:23

After reading posts i resigned from upgrade of plasma. :|
It is a pity that Linux is not modular, then such an operation would be possible. ;)

Thank You for responses.

User avatar
palimmo
Posts: 762
Joined: 19 Nov 2013 19:44
Contact:

Re: Upgrade plasma 5.8 to 5.12 on SolydK 9

Postby palimmo » 29 Mar 2018 15:00

Proud user of SolydK!

Dai diamanti non nasce niente, dal letame nascono i fior. http://aquilone.wordpress.com/

User avatar
palimmo
Posts: 762
Joined: 19 Nov 2013 19:44
Contact:

Re: Upgrade plasma 5.8 to 5.12 on SolydK 9

Postby palimmo » 01 Apr 2018 15:35

I did it this morning.
So far everything good.
Proud user of SolydK!

Dai diamanti non nasce niente, dal letame nascono i fior. http://aquilone.wordpress.com/

User avatar
palimmo
Posts: 762
Joined: 19 Nov 2013 19:44
Contact:

Re: Upgrade plasma 5.8 to 5.12 on SolydK 9

Postby palimmo » 04 Apr 2018 06:39

Here you can find the script content:

Code: Select all

#!/bin/bash

function check_root {
  if [ "$(id -u)" != "0" ]; then
    echo "This script must be run as root" 1>&2
    exit 1
  fi
}

function show_welcome {
  FROM=$1
  TO=$2
  clear;
  echo "Neptune Upgrade Script";
  echo "-----------------------------";
  echo "This will upgrade $FROM to $TO."; 
  echo -e "\033[1mPlease make sure to have a working internet connection, enough free space and a plugged in power cord on your laptop\033[0m"; 
  echo ""; 
  echo "Press any key to continue or CTRL+C to abort" ; 
  read FOO
  echo "Upgrade process starts...";
}

function create_sourceslist_backup {
  # Create Backup in case anything goes wrong
  find /etc/apt/sources.list.d/ -exec cp {}{,.bak} \;
  cp /etc/apt/sources.list{,.bak}
}


function change_repo_component {
  OLD=$1
  NEW=$2
  REPOLIST=$3
  if [ -n $OLD ] && [ -n $REPOLIST ]; then
    sed -i -e "s/$OLD/$NEW/" $REPOLIST
  fi
}

function remove_repo_component {
  COMP=$1
  REPOLIST=$2
  change_repo_component "$COMP" "" "$REPOLIST" 
}

function prepare_repos {
  # Add main repo
  echo "deb https://download.neptuneos.com/repos/neptune5/repo-kde/ stretch main" > /etc/apt/sources.list.d/neptune.list

  # Add Neptune gpg key
  wget https://neptuneos.com/files/NeptuneOS/Files/neptune.gpg.key -O /tmp/neptune.key
  apt-key add /tmp/neptune.key
}

function upgrade_packages {
  # Manual upgrade packages and remove older ones if necessary
  apt-get update
  apt-get remove kde-l10n-*
  apt-get install -y -f apt-transport-https
}

function update_system {
  apt-get update
  apt-get dist-upgrade -y -f -o Dpkg::Options::="--force-confnew"

  # Make sure everything is consistent
  apt-get install -y -f -o Dpkg::Options::="--force-confnew" -o Dpkg::Options::="--force-overwrite"

  # Just to be sure everything is up to date
  apt-get dist-upgrade -y -f -o Dpkg::Options::="--force-confnew" -o Dpkg::Options::="--force-overwrite"

  echo " ";
  echo "Upgrade finished. Please reboot.";
}

check_root
show_welcome "KDE Plasma 5.8 LTS" "KDE PLasma 5.12 LTS"
create_sourceslist_backup
upgrade_packages
prepare_repos
update_system
Do you think I can leave after the upgrade & update the neptune repo active in my source.list? Will I get KDE 5.12 updates through that?
Proud user of SolydK!

Dai diamanti non nasce niente, dal letame nascono i fior. http://aquilone.wordpress.com/

User avatar
ilu
Posts: 1877
Joined: 09 Oct 2013 12:45

Re: Upgrade plasma 5.8 to 5.12 on SolydK 9

Postby ilu » 04 Apr 2018 09:11

If it's this repo https://download.neptuneos.com/repos/neptune5/repo-kde/ you should leave it active. No guarantees but it looks like they are trying to keep it updated. Neptune seems to be a distro very much like SolydXK - 3 people doing adjustments and some software packages but rely on debian stable for the rest. You could ask in their forums, most is in german but that's probably a language you do speak anyway.

kurotsugi
Posts: 2034
Joined: 09 Jan 2014 00:17

Re: Upgrade plasma 5.8 to 5.12 on SolydK 9

Postby kurotsugi » 04 Apr 2018 15:50

yes...and you should. I'm not even sure if you could remove neptune OS component from your system. though, IMO it's a good thing. you can get all the goodness both from solydxk and neptune. however, please remember that your system is now closer to neptune so that you have to follow their migration cycle when new debian got released.


Return to “KDE specific (SolydK)”

Who is online

Users browsing this forum: No registered users and 1 guest