Package questions | looking to install gMTP

Hello. It seems that gMTP, which is a program that I find useful for connecting with my LineageOS phone (an Android like phone), is not available in the main repositories of OpenSUSE (at least, thatt’s what YaST reports to me). I come from a Debian background. If a program wasn’t available in the official repositories, then sometimes some alternate repository could be found. Or, sometimes a package could be built from source, if need be (IE, it could be ported to the stable distribution from Sid’s sources).

I’m not sure what the deal is with packages in OpenSUSE. I realize it’s RPM based. So, if I find an RPM from Fedora or Mandriva, can I just use that? Or is there some other pool of OpenSUSE packages available somewhere? A different repository that can be enabled? A tool to build packages from source?

Hi
It’s in GNOME:Apps Show GNOME:Apps / gmtp - openSUSE Build Service try it, will look at updating (last time I touched it was 4 years ago…)

More generally,
I wrote a Wiki article describing a general procedure for finding files and packages you may need

https://en.opensuse.org/User:Tsu2/Missing_Files_Dependencies

TSU

Also did a quick lookaround…
Not sure what you may be doing exactly, but here are some other things you can look into based on the idea that applications often include their own necessary library.
Am also not sure if the media players based on some kind of MTP is related at all, my only personal experience with MTP is that it’s a required configuration when connecting to a storage serial device, as opposed to a serial communications device particularly when a device can function as either (eg a typical phone). Some of these may simply be utilizing a different version of MTP.

The MTP protocol for transferring media content implemented as a FUSE
https://software.opensuse.org/package/simple-mtpfs

Tools and library related to media players that use the MTP typically over USB
https://software.opensuse.org/package/libmtp
https://software.opensuse.org/search?utf8=✓&baseproject=ALL&q=libmtp
https://wiki.archlinux.org/index.php/Media_Transfer_Protocol

HTH,
TSU

Hi
Update pushed and accepted into GNOME:Apps @ version 1.3.11

Hello malcomlewis. Thanks, that’s great. However, I’m not sure how to add that repository to the YaST Package Manager.

As a follow up to my post above, I did do a search, via duckduckgo, to see how I could install the RPM regardless of having it in a YaST repository or not. I did get an answer, and my computer prompted a further answer, which resulted in the following:


mark@linux-qx6b:~/Downloads> sudo zypper --non-interactive install gmtp-1.3.11-lp151.1.1.x86_64.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 2 NEW packages are going to be installed:
  gmtp libid3tag0

2 new packages to install.
Overall download size: 166.9 KiB. Already cached: 0 B. After the operation,
additional 481.0 KiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package libid3tag0-0.15.1b-lp151.4.3.x86_64
                                           (1/2),  37.0 KiB ( 90.6 KiB unpacked)
Retrieving: libid3tag0-0.15.1b-lp151.4.3.x86_64.rpm ......................[done]
Retrieving package gmtp-1.3.11-lp151.1.1.x86_64
                                           (2/2), 129.8 KiB (390.4 KiB unpacked)
gmtp-1.3.11-lp151.1.1.x86_64.rpm:
    Header V3 DSA/SHA1 Signature, key ID 629ff0c2: NOKEY
    V3 DSA/SHA1 Signature, key ID 629ff0c2: NOKEY

Looking for gpg key ID 629FF0C2 in cache /var/cache/zypp/pubkeys.
Repository Plain RPM files cache does not define additional 'gpgkey=' URLs.
gmtp-1.3.11-lp151.1.1.x86_64 (Plain RPM files cache): Signature verification failed [4-Signatures public key is not available]
Abort, retry, ignore? [a/r/i] (a): a
Problem occurred during or after installation or removal of packages:
Installation has been aborted as directed.
Please see the above error message for a hint.


Anyway, that’s just FYI. I certainly appreciate your effort.

Hi
Unless you add the repository or manually install the key you will get that error, temporarily add and then disable;


su -
zypper ar -f -g -n "GNOME Apps" https://download.opensuse.org/repositories/GNOME:/Apps/openSUSE_Leap_15.1/ repo-gnome-apps
zypper ref
(here you accept the key)
zypper in gmtp
zypper mr -d -F repo-gnome-apps
exit

Enjoy :slight_smile:

Thanks! Worked perfectly!

I’ve posted a lot of useful things in my Wiki,
Including the following page that describes a number of common zypper commands used in scripts I’ve written which of course involves a number of ways to add repositories and install files… from simple to more automated and complex

https://en.opensuse.org/User:Tsu2/BASH_zypper

You might find a numbr of other articles I’ve written useful if you’re new to openSUSE…

TSU

I tried to do this for PySolFC, since there isn’t an official release for that program (see https://software.opensuse.org/package/PySolFC). I discovered this repository for the game here: https://build.opensuse.org/repositories/games/PySolFC

So, I attempted to do a similar command that had worked for the Gnome Apps repository, but my guesswork failed. I had given an incorrect name for it (or something was incorrect). So, I wonder, when such repositories are found, like the PySolFC repository, is there a place that indicates the proper name of the repository? In Debian, generally when there’s a repository that’s outside of the official repositories, there’s usually a command provided on the site of such a repository that guides people on how to properly add it to their sources.list. I looked, but I could not find anything similar in these unofficial OpenSUSE repositories.

Hi
At this page Show games / PySolFC - openSUSE Build Service off to the right select the ditribution name eg openSUSE_Leap_15.1 (it’s a link) and will take you to the next page that shows the rpm’s, at the top of the page is the link to the download repository for your selected release.

https://download.opensuse.org/repositories/games/openSUSE_Leap_15.1/

Same routine;


su -
zypper ar -f -g -n "Games" https://download.opensuse.org/repositories/games/openSUSE_Leap_15.1/ repo-games
zypper ref
zypper in PySolFC
zypper mr -d -F repo-games
exit

The reason to disable is so you don’t pull in anything that may in the future upset your system :wink: Both of those repositories are benign in nature (as in main system packages) so should be good to go.

Thanks for your response. Alas, it seems it’s a broken package:


mark@linux-qx6b:~> pysol
Traceback (most recent call last):
  File "/usr/bin/pysol", line 28, in <module>
    init()
  File "/usr/lib/python2.7/site-packages/pysollib/init.py", line 91, in init
    from six.moves import tkinter
ImportError: No module named six.moves
mark@linux-qx6b:~> 

Anyway, I see how you got the URL for the repository, but I’m still not sure where you found the name for it (“Games” and “repo-games”). Where did you find that information?

Hi
Best to head here: Search but I would suggest not using the 1-click install as it will sometimes add the wrong repository and it won’t disable after install.

So is python-six installed?

Hi
So a bit of a deeper look at PySolFC, so it’s now at 2.8.0, I have updated the package (python3 only) but yet to push to the games repo, it now needs a new python module “python3-pysol-cards” which is in my testing repository, I will push this as a new package to the python development repo, but it won’t get into the Leap 15.1 release.

In the interim, can you test the new 2.8.0 version (I’ve temporarily enabled the Leap 15.1 publish)?

pysol card module;
https://build.opensuse.org/package/binaries/home:malcolmlewis:TESTING/python-pysol-cards/openSUSE_Leap_15.1

Hi
Seems there are a few python3 modules not in Leap 15.1, so on my test system had to add the development repo…


zypper ar -f -g -n "devel:languages:python" https://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_Leap_15.1/ repo-devel-python

Once added and the update PySolFC installed, disable as well :wink: You will also be asked to switch some system python modules, allow that to happen.

Hi
Update for PySolFC has been accepted into Games repository, the python-pysol-cards module is submitted to devel:languages:python and waiting to be accepted.

Noting the progress being made in this thread and Malcolm’s efforts…

If in the end this doesn’t work out,
A reminder that a User can install virtualenv to support multiple side by side python environments, install a recent or even bleeding edge version of python from Pypi if necessary and the needed package may be found there.

There options, but don’t want to discourage what is already happening here…

TSU

Hi
All working fine and tested on Tumbleweed and Leap 15.1… If I push to Tumbleweed it will work OTB, just Leap users will need d:l:p repo…

Hi
This has been accepted into the development repository (and forwarded to Factory so will be in Tumbleweed releases in the near future).

Since PySolFC is not in Tumbleweed, I can request it’s submission to Factory if folks want that?