Update method question

Okay, so I have 12.2 installed and I’ve been using ‘zypper dup’ to do the updates, but I’m not sure now if that was the right way, maybe ‘zypper up’ is the right way ?
I don’t have any problems, just wanting to know the proper way of doing things.
I have Apper disabled btw.

I have added two additional repos, one is Pacman (only because I don’t know any other way to install XBMC, I don’t need that repo otherwise) , second repo is for font smoothing (without it I really can’t use openSuse)

Here are the repos obtained with ‘zypper lr -d’ :


#  | Alias                     | Name                                              | Enabled | Refresh | Priority | Type   | URI                                                                 | Service
---+---------------------------+---------------------------------------------------+---------+---------+----------+--------+---------------------------------------------------------------------+--------
 1 | Subpixel                  | Subpixel hinting enabled packages (openSUSE_12.2) | Yes     | Yes     |   99     | rpm-md | http://pmbs-api.links2linux.org:8080/Subpixel/openSUSE_12.2/        |        
 2 | openSUSE-12.2-1.6         | openSUSE-12.2-1.6                                 | No      | No      |   99     | yast2  | cd:///?devices=/dev/disk/by-id/ata-PIONEER_DVD-RW_DVR-111D,/dev/sr0 |        
 3 | packman.inode.at-suse     | Packman Repository                                | Yes     | Yes     |   99     | rpm-md | http://packman.inode.at/suse/12.2/                                  |        
 4 | repo-debug                | openSUSE-12.2-Debug                               | No      | No      |   99     | NONE   | http://download.opensuse.org/debug/distribution/12.2/repo/oss/      |        
 5 | repo-debug-update         | openSUSE-12.2-Update-Debug                        | No      | No      |   99     | NONE   | http://download.opensuse.org/debug/update/12.2/                     |        
 6 | repo-debug-update-non-oss | openSUSE-12.2-Update-Debug-Non-Oss                | No      | No      |   99     | NONE   | http://download.opensuse.org/debug/update/12.2-non-oss/             |        
 7 | repo-non-oss              | openSUSE-12.2-Non-Oss                             | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/12.2/repo/non-oss/        |        
 8 | repo-oss                  | openSUSE-12.2-Oss                                 | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/12.2/repo/oss/            |        
 9 | repo-source               | openSUSE-12.2-Source                              | No      | No      |   99     | NONE   | http://download.opensuse.org/source/distribution/12.2/repo/oss/     |        
10 | repo-update               | openSUSE-12.2-Update                              | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/12.2/                           |        
11 | repo-update-non-oss       | openSUSE-12.2-Update-Non-Oss                      | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/12.2-non-oss/                   |    


Now, there were couple of vendor changes during ‘zypper dup’ while used, can’t remember which ones and I don’t know how to pull that info now (if that is important).

So, ‘zypper up’ or ‘zypper dup’ ?
Maybe another way to put it would be… let’ say I do a fresh install of openSuse 12.2, which one should I use first ?
Also, after that initial update is done and I add additional repos after that, which one should I use from that point on ?

On 2013-01-24 16:46, gzenum wrote:
>
> Okay, so I have 12.2 installed and I’ve been using ‘zypper dup’ to do
> the updates, but I’m not sure now if that was the right way, maybe
> ‘zypper up’ is the right way ?

Wrong method.

A zypper dup is intended to do a distribution upgrade, from, say 12.1 to
12.2. Not for regular updates.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

A zypper dup will give you the highest numbered version of a package and it may do a vendor switch for that package to get it.

A zypper up will give you a newer version of a package without switching vendor (when a newer one is vailable of course).

Thus you only do a general zypper dup when you want to upgrade a complete openSUSE version using the method of changing the repos to the new openSUSE Oss, non-OSS and Updates repos and then doing the zypper dup.

You may also do a zypper dup for a specific repo to switch al products you already have to those in that repo including a needed vendor switch, This is e.g. done for the multi-media switch to Packman (but many do this from YaST using the View by repos, thenn select Packman and then do the Switch all … above the package listing).

For normal maintanance, you do a zypper patch for getting the Security and recomended updates from the Update repos of openSUSE proper.

You do a zypper up to update to the newest from your enabled repos (that includes zypper patch). It is up to do if you do this for all your repos at once or for a repo at a time. Depends on the number of enabled repos and if you want to be able to follow what you are doing and what update does what to your system.

Thus, when you do a fresh installation, there is no zypper dup anywhere in your installation plans, except for e.g. the Packman switch.

Looking at your repos
zypper dup, probably will not have done much harm

But ideally you should apply the switch on Packman

And from then on, just use

zypper up

I understand now, thanks.

The only thing not exactly clear to me now is the vendor change.
So let’s say after fresh installation, I do ‘zypper up’ to update the system.
After that is done, I decide for example to add Packman and Subpixel repos.
What are exactly my next steps regarding vendor change ?
I go to Yast and then select ‘Switch All’ for those both repos, then install what I need from those repos and after all that is done I do the updates with ‘zypper up’ from then on ?

Typically you install the packages you want
ie: follow the multimedia guide: https://forums.opensuse.org/content/127-multimedia-restricted-formats-installation-guide-12-2.html

This includes a switch (vendor change) instruction.
You can apply the switch on the subpixel repo too
These switches remain and zypper up will not break that switch

From time to time you may need to apply the switch again to packman, particularly as over time, you may install more applications which also need to be from Packman

All clear now, I’ll do it like that when I do a fresh install next time.
Right now, I don’t know what ‘damage’ have I done by using ‘zypper dup’ instead of ‘zypper up’ (zypper dup took care of vendor changes for me btw) , system is running fine without any problems.

However, now when I do ‘zypper up’ this is what I get :


linux-kjcm:/home/gzenum # zypper up
Loading repository data...
Reading installed packages...

The following package updates will NOT be installed:
  gstreamer-0_10-plugins-base gstreamer-0_10-plugins-good libxine2-pulse 

Nothing to do.

when I do ‘zypper dup’ :


linux-kjcm:/home/gzenum # zypper dup
Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command.
Loading repository data...
Reading installed packages...
Computing distribution upgrade...

Nothing to do.

Any thoughts on that and maybe some tip on how to resolve this ‘damage’ now without re-installing the OS ?

There is no damage
Just apply the switch on packman and be done
https://dl.dropbox.com/u/10573557/Switcher%20Pics/packman_12.2.jpg

y
ou must be able to understand that now with the information you got from us.

And do not do any zypper dup just to see what happens!

On 2013-01-24 18:36, gzenum wrote:
> However, now when I do ‘zypper up’ this is what I get :

Normal and expected.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

Yes I understood that, and I didn’t run zypper dup just to see what happens, I was getting :

The following package updates will NOT be installed:  

gstreamer-0_10-plugins-base gstreamer-0_10-plugins-good libxine2-pulse

… when I executed zypper up , so I wasn’t sure what to make of that message and then I tried zypper dup to see will that happen there as well.

I’m not running zypper dup anymore, I get that now.

Anyhow, I switched packages from Yast and that message isn’t appearing anymore when zypper up is executed.

Thanks @caf4926

You can make zypper more verbose with

zypper -vv up