openSUSE:Tumbleweed upgrade

Μετάβαση σε: πλοήγηση, αναζήτηση

Σε αυτό το άρθρο 'Αναβάθμιση' σημαίνει 'μετακίνηση από παλαιότερη έκδοση openSUSE (πχ. openSUSE 13.2 ή Leap) στην Tumbleweed.

Υπάρχουν 2 υποστηριζόμενοι μηχανισμοί αναβάθμισης

  • Αναβάθμισης εκτός δικτύου - Σε αυτή χρησιμοποιείτε το DVD για να εκκινήσετε το σύστημα και να αναβαθμίσετε
  • Αναβάθμιση από το δίκτυο - Αυτό αλλάζει τα αποθετήρια της υπάρχουσας εγκατάστασης openSUSE και αναβαθμίζει ενώ το σύστημα είναι συνδεδεμένο στο δίκτυο

Η αναβάθμιση εκτός δικτύου είναι λίγο πιο ασφαλής επειδή δεν υπάρχει περίπτωση να εκτελούνται εφαρμογές που θα παρεμβαίνουν στην διαδικασία αναβάθμισης

Online upgrade is a little more convenient as it can be done while a system is running, and doesn't require a full DVD download

Offline Upgrade

Offline Upgrade only requires a few steps

  1. Download the appropriate DVD Media, and burn it to a DVD or USB Stick
  2. Boot the DVD or USB Stick
  3. Choose Upgrade
  4. Follow the Wizard, which will detect which openSUSE installations you have on your machine and offer to upgrade them.

Online Upgrade

There are three tasks needed in order to Online upgrade from any release to Tumbleweed:

  1. Install the current online updates of the old distribution, if any. (Mostly needed for openSUSE 13.2 to fix a kernel issue during migration. On 13.2 also reboot the machine before proceeding.)
  2. Changing repositories to point to Tumbleweed
  3. Running zypper dup to upgrade all packages

Αποθετήρια

Ξεκινήστε με την αφαίρεση των υπαρχόντων αποθετηρίων:

mkdir /etc/zypp/repos.d/old
mv /etc/zypp/repos.d/*.repo /etc/zypp/repos.d/old

Μετά προσθέστε τα νέα αποθετήρια

zypper ar -f -c http://download.opensuse.org/tumbleweed/repo/oss repo-oss
zypper ar -f -c http://download.opensuse.org/tumbleweed/repo/non-oss repo-non-oss
zypper ar -f -c http://download.opensuse.org/tumbleweed/repo/debug repo-debug
zypper ar -f -c http://download.opensuse.org/update/tumbleweed/ repo-update

Προαιρετικά μπορείτε να προσθέσετε αποθετήρια από πηγαία αρχεία από το OBS.

zypper ar -f -d -c http://download.opensuse.org/tumbleweed/repo/src-oss repo-src-oss
zypper ar -f -d -c http://download.opensuse.org/tumbleweed/repo/src-non-oss repo-src-non-oss

Στο τέλος η λίστα με τα αποθετήριά σας πρέπει να μοιάζει κάπως έτσι:

# zypper lr -u
 # | Alias             | Name              | Enabled | Refresh | URI
 --+-------------------+-------------------+---------+---------+--------------------------------------------------------
 1 | repo-debug        | repo-debug        | Yes     | Yes     | http://download.opensuse.org/tumbleweed/repo/debug
 2 | repo-non-oss      | repo-non-oss      | Yes     | Yes     | http://download.opensuse.org/tumbleweed/repo/non-oss
 3 | repo-oss          | repo-oss          | Yes     | Yes     | http://download.opensuse.org/tumbleweed/repo/oss
 4 | repo-src-non-oss  | repo-src-non-oss  | No      | Yes     | http://download.opensuse.org/tumbleweed/repo/src-non-oss
 5 | repo-src-oss      | repo-src-oss      | No      | Yes     | http://download.opensuse.org/tumbleweed/repo/src-oss
 6 | update            | repo-update       | Yes     | Yes     | http://download.opensuse.org/update/tumbleweed/

Το αποθετήριο update είναι συνήθως κενό και χρησιμοποιείται μόνο ως έσχατη λύση, σε περίπτωση που ένα snapshot του tumbleweed έχει αργήσει και ένα τεράστιο κενό ασφαλείας πρέπει να διορθωθεί γρήγορα.

Running the upgrade

Once you are done with the repo setup use zypper dup to upgrade.

Προσοχή It's a good idea to run this command in a screen session to avoid

zypper dup from getting killed in case e.g. X dies. To avoid this problem you can use Tmux, too.

zypper dup

Now go make some coffee and have a lot of fun when using our rolling release.

Meanwhile don't forget to subscribe to the mailinglist to stay up to date with the Factory development.