Opensuse installing codecs the right way

IMHO it is very simple. When one uses Tumbleweed, one gets a new snapshot (rather frequently). A snapshot is tested as a complete collection of software and it is more or less a new distribution. That is why one does a zypper dist-upgrade (or zupper dup for short) to get that complete and tested collection. And when you understand the phrase about “tested as a collection”, you might understand why it is not a good idea to take only some of it and keep the rest as it is.

Best is to do the zypper dup say once a week (there are people that do it every day, just what you like).

That advice is there from the start of Tumbleweed and I have seen it passing by here dozens of time.

And when that applet or Discover or anything else based on PackageKit irritates you, switch it off, remove it, or simply forget it. You can use YaST for installing and removing packages to your liking, but not for updating.

And when this is not what you like, you may look into Leap, where things are different.

2 Likes

got it, thank you again for the explanation.
On Thumbleweed and Opensuse in general I notice different philosophy of doing things and even though it’s anyong at first, I like learning new ways in new distros.

It is always better not to assume that Linux distributions are the same. After all, when they are the same, then why different distributions?

So enjoy.

And please note that correct spelling is important in every computer operating system. That is of course true for spelling commands, but also other words are better spelled correct if you want to bring your message, or show that you understand what you are talking about. It is Tumbleweed and openSUSE.

I am using the help of this website for years in order to install the multimedia codecs:

https://opensuse-guide.org/codecs.php

(easy to find with google: opensuse multimedia - Google Suche )

Better use the more accurate and up to date SDB as already mentioned in the second comment of this thread.

How about this one (listed at the official opensuse website):

Nope. Don’t use and advertise 1-click installations! You can search the forum yourself how easily they will break your system…

Additionally this page is also outdated as it as example still recommends ffmpeg-3 for Tumbleweed (you have to inspect the links to see that…). We are already at ffmpeg-6 in Tumbleweed…
The same outdated libavdevice58 is recommended whilst we are already at libavdevice60…

1 Like

I understand but my problem was that I didn’t know that I had to install codecs.
In all the distros that I tried I never ever installed codecs manually. Only in Windows back in the 2000’s
And I couldn’t make the connection, because some movies were working with some glitches, some didn’t at all.

flow it is all good. My last two posts where directed at felbre who tried to advertise pages with outdated informations regarding the installation of codecs.

1 Like

I’m new on openSUSE. Codec was my concern when decided to hop into openSUSE.
In my journey to trying openSUSE, I found many tutorial suggestions about how to install codec via packman.
And I found the one stop tool that can help to install codec.
“OBS Package Installer” [1] [2]

Just run the command suggestion for the help menu,

$ opi codecs

Then, opi will working for us.

[1] SDB:OBS Package Installer - openSUSE Wiki
[2] GitHub - openSUSE/opi: OBS Package Installer (CLI)

I never used it, but it indeed seems to do the vendor switch in one command.

But I assume it must be run “as root” (your prompt does not show that).

Oh sorry, forgot to include those information.
It will prompt the sudo after another confirmation prompt. like this,

So, It can bring a sudo prefix into opi command, or not (I guess).

And again: The SDB which mentions how to properly install codecs from packman via opi or zypper where already mentioned in the first comment in this thread by Sauerland.

2 Likes

OK, I did not know that opi uses sudo when it is run as normal user (I assume that when you do as root, it will not do that).

I would never have thought about running opi as normal user when I want to work on the system.

When I would have done this as normal user by incident and then had got that sudo prompt, I probably would have killed it, to do it again as root.

I never use sudo, but that is a very personal attitude.

1 Like

I admit I did skip almost half of this thread so it might come up already:
Do you need to give the Packman repo a lower number indicating a higher preference or does it work automatically once you chose Vendor change?

As mentioned in the SDB a lower number (higher priority) is recommended.

You do not seem to understand this mechanism.

The higher priority is only interesting at the moment that you install a new package. When that package is then available in more then one repository, the one with the higher priority will be chosen.

For packages already installed, priority has no value, because vendor stickiness will see that the package is only updated from the same vendor.

My experience is that once that I have done the vendor switch to Packman (right after a fresh system installation), I never felt any reason to add a new package that also comes from Packman. Thus, for this situation, having a higher priority for Packman is useless.

But there always could be a chance that you need something new that is also in Packman. So giving Packman a higher priority will not hurt, but will come handy in such a case.

Thats not completely right. As example have a look at the libavcodec or ffmpeg packages. First there where ffmpeg, then ffpmeg-2, then ffmpeg-3, ffmpeg-4, ffmpeg-5, ffmpeg-6… The same for libavcodec57, libavcodec58, libavcodec59, libavcodec60,…
The package with the highest number in the name is the one with the latest development/evolution status.

When you don’t have set a higher priority on packman and you want to install as example ffmpeg-6 (you used ffmpeg-5 before) you will pull the package from openSUSE repo or the one with the higher version number.

And the two above mentioned packages are not the only ones which mark their developement/evolution with numbers in the package name. So it is important to set a higher priority for the packman repo, when you want to stay up to date with the newest packages from packman.

What you paint falls in my opinion under what I call " need something new that is also in Packman" and “The higher priority is only interesting at the moment that you install a new package.”.

And I mentioned also that I never experienced this need.

And I also doubt that all those ffmpeg upgrades happened during the lifetime of a LEAP version and one will get the next one with a new LEAP. But maybe using Tumbleweed there is more chance that you want to hop over.

But my main reason to post was because from @JanMussche post I got the impression that he thinks that priority influences vendor stickyness.

1 Like