We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

Add Software Repos like Openreposnet and various repos via commandline [answered]

asked 2020-06-18 23:35:06 +0200

speefak gravatar image

updated 2020-06-18 23:36:31 +0200

First a add software source via zypper :

zypper ar -f https://sailfish.openrepos.net/<USER>/personal-main.repo

But zypper a zypper lr list missing gpg keys and the repo does not work. Then is add repos via ssu :

ssu addrepo <USER> http://sailfish.openrepos.net/openrepos_username/personal/main

zypper -lr no shows the repos like the working repos. Updating Repos works well too. But i cant install any package from a repo. I reconized that the repos should work from command line putput but in the storeman app there is none of the added repos from commandline. I would like to know how can i add an repos and install the softwarepackages DIRECTLY from commandline ( for scripted installations ).

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by peterleinchen
close date 2020-06-19 08:33:29.631837

Comments

if i add the repos like above they are not activated / useable whatever - packet installtion does not work until they were added via storeman, that really bad if you want write scripts for automated installations.

what have i to to ? which snytax does the repo completly activate a repo so that i can install software vis terminal ?

speefak ( 2020-06-18 23:55:10 +0200 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2020-06-19 01:56:13 +0200

updated 2020-06-19 09:05:01 +0200

afair StoreMan uses its own way of repo database? (so manually added repos do not show up) Or is it a bug?

Did you import the key?

rpm --import https://sailfish.openrepos.net/openrepos.key


Nevertheless as you want to do everything from command line go ahead, it should work.
Instead of the parameter '-f' I would use '-G' so the repo is added lie all other openrepos repos.

zypper ar -G https://sailfish.openrepos.net/<USER>/personal-main.repo

After that please use

zypper ref

and as well

pkcon refresh

to update the repo databases for zypper and pkcon. Depending on how you want to install.
This definitely works. And you can install packages via cli.

edit flag offensive delete publish link more

Comments

Error found - sitting in front of screen ;)

I entered an incorrect syntax - but i am wondering that zypper does not show any error because the repo URL doesn`t exist.

speefak ( 2020-06-19 02:54:23 +0200 )edit

May happen :)

Depending on the manual command:

zypper ar -G https://sailfish.openrepos.net/somerepo/personal-main.repo
File '/somerepo/personal-main.repo' not found on medium 'https://sailfish.openrepos.net/'

or

[root@Sailfish nemo]# zypper ar -G https://sailfish.openrepos.net/somerepo/
If only one argument is used, it must be a URI pointing to a .repo file.

or

[root@Sailfish nemo]# zypper ar -G https://sailfish.openrepos.net/somerepo/ somerepo

then zypper claims on refresh:

Retrieving repository 'somerepo' metadata .........................................[error]Repository 'somerepo' is invalid.[somerepo|https://sailfish.openrepos.net/somerepo/] Valid metadata not found at specified URLPlease check if the URIs defined for this repository are pointing to a valid repository.Skipping repository 'somerepo' because of the above error.
peterleinchen ( 2020-06-19 08:28:06 +0200 )edit

Question tools

Follow
3 followers

Stats

Asked: 2020-06-18 23:35:06 +0200

Seen: 435 times

Last updated: Jun 19 '20