inxi now shows Mageia repos

Here you'll find a place for solutions and hints.

Please use one of the support subforums below for questions or if you have any issues and need support.

inxi now shows Mageia repos

Postby dbg » Oct 5th, '13, 11:18

I was playing with the inxi program which gives you nicely formatted information about your system. There are lots of switches to display more or less information. I saw in the man pages that the "-r" switch would display which repositories you had set up...but it only worked with APT, PACKMAN, YUM and a few others. The man page also said that they would add other distro packaging systems if they had the info. I filled out a feature request on their forum for including the output of:
Code: Select all
urpmq --list-media active --list-url

This shows the name of your enabled media and it's URL. Within a few hours they had a new version of inxi which works with urpmq!

You can install inxi from the Mageia repos and then use inxi's built in updating script to get the new version. Open a terminal and as root type:
Code: Select all
inxi -U

This will install version 1.9.15-00 which includes urpmq.

To see most of the info about your system type:
Code: Select all
inxi -v7 -r
dbg
 
Posts: 72
Joined: Mar 30th, '11, 22:28
Location: Grants Pass, Oregon

Re: inxi now shows Mageia repos

Postby doktor5000 » Oct 5th, '13, 19:07

Thanks for sharing :)
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18042
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: inxi now shows Mageia repos

Postby jkerr82508 » Oct 5th, '13, 21:17

One minor flaw (that will affect very few people) is that it does not seem to list a repo that is accessed directly on the local machine - for example if you set up a custom "Local files" repo. Nevertheless it is a useful addition to an excellent tool.

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: inxi now shows Mageia repos

Postby dbg » Oct 6th, '13, 02:51

it does not seem to list a repo that is accessed directly on the local machine

Yes it does...at least on my computer. See the first 2 repos on:

http://griffin.isa-geek.net/inxi-r.png

It should show everything that the command:

Code: Select all
urpmq --list-media active --list-url


shows. If you have repos set up but they are not enabled they will not be displayed.
dbg
 
Posts: 72
Joined: Mar 30th, '11, 22:28
Location: Grants Pass, Oregon

Re: inxi now shows Mageia repos

Postby jkerr82508 » Oct 6th, '13, 03:10

Here's what I have:

Code: Select all
 urpmq --list-media active --list-url
Core Updates (private3) /mirror/Mageia/distrib/3/x86_64/media/core/updates
Core Release (private1) /mirror/Mageia/distrib/3/x86_64/media/core/release
Nonfree Release (private11) /mirror/Mageia/distrib/3/x86_64/media/nonfree/release
Nonfree Updates (private13) /mirror/Mageia/distrib/3/x86_64/media/nonfree/updates
Tainted Release (private21) /mirror/Mageia/distrib/3/x86_64/media/tainted/release
Tainted Updates (private23) /mirror/Mageia/distrib/3/x86_64/media/tainted/updates
Core 32bit Release (private31) /mirror/Mageia/distrib/3/i586/media/core/release
Core 32bit Updates (private33) /mirror/Mageia/distrib/3/i586/media/core/updates
chrome_x86_64 http://dl.google.com/linux/chrome/rpm/stable/x86_64
google-earth http://dl.google.com/linux/earth/rpm/stable/x86_64
iscan ftp://192.168.0.2/pub/mirror/iscan

and
Code: Select all
inxi -r
Repos:     urpmq repo: chrome_x86_64
           http://dl.google.com/linux/chrome/rpm/stable/x86_64
           urpmq repo: google-earth
           http://dl.google.com/linux/earth/rpm/stable/x86_64
           urpmq repo: iscan
           ftp://192.168.0.2/pub/mirror/iscan


Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: inxi now shows Mageia repos

Postby dbg » Oct 6th, '13, 03:24

strange...do those repos that start with "/mirror/Mageia/distrib/" work? Usually a URL would start with one of the following:

http://
ftp://
file://
rsync://

Maybe URPMI assumes "file://" if a protocol is not specified?
dbg
 
Posts: 72
Joined: Mar 30th, '11, 22:28
Location: Grants Pass, Oregon

Re: inxi now shows Mageia repos

Postby jkerr82508 » Oct 6th, '13, 03:41

Yes. They work. :)

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: inxi now shows Mageia repos

Postby Ken-Bergen » Oct 6th, '13, 03:57

Jim is correct.
Here are my local repositories which do work
Code: Select all
[ken@localhost cauldron]$ urpmq --list-media active --list-url
Core Release (Local1) /mnt/data/mirrors/mageia/distrib/cauldron/x86_64/media/core/release
Core 32bit Release (Local3) /mnt/data/mirrors/mageia/distrib/cauldron/i586/media/core/release
Core Updates (Local4) /mnt/data/mirrors/mageia/distrib/cauldron/x86_64/media/core/updates
Core 32bit Updates (Local6) /mnt/data/mirrors/mageia/distrib/cauldron/i586/media/core/updates
Nonfree Release (Local16) /mnt/data/mirrors/mageia/distrib/cauldron/x86_64/media/nonfree/release
Nonfree 32bit Release (Local18) /mnt/data/mirrors/mageia/distrib/cauldron/i586/media/nonfree/release
Nonfree Updates (Local19) /mnt/data/mirrors/mageia/distrib/cauldron/x86_64/media/nonfree/updates
Nonfree 32bit Updates (Local21) /mnt/data/mirrors/mageia/distrib/cauldron/i586/media/nonfree/updates
Tainted Release (Local31) /mnt/data/mirrors/mageia/distrib/cauldron/x86_64/media/tainted/release
Tainted Updates (Local34) /mnt/data/mirrors/mageia/distrib/cauldron/x86_64/media/tainted/updates
Ken
Ken-Bergen
 
Posts: 1019
Joined: Mar 30th, '11, 02:45
Location: Chilliwack, BC, Canada

Re: inxi now shows Mageia repos

Postby jkerr82508 » Oct 6th, '13, 04:21

It seems that if the --distrib option is used ("Create media for an entire distribution" in the GUI) then file:// is not added to the urls of local repo's. If, however, a single repo is configured then it is.

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: inxi now shows Mageia repos

Postby dbg » Oct 6th, '13, 21:08

The inxi programmer fixed it! Do another

Code: Select all
inxi -U


to update to verion 1.9.16
dbg
 
Posts: 72
Joined: Mar 30th, '11, 22:28
Location: Grants Pass, Oregon

Re: inxi now shows Mageia repos

Postby jkerr82508 » Oct 6th, '13, 22:35

Yes. It now lists all of my repo's:
Code: Select all
 inxi -r
Repos:     urpmq repo: Core Updates (private3)
           /mirror/Mageia/distrib/3/x86_64/media/core/updates
           urpmq repo: Core Release (private1)
           /mirror/Mageia/distrib/3/x86_64/media/core/release
           urpmq repo: Nonfree Release (private11)
           /mirror/Mageia/distrib/3/x86_64/media/nonfree/release
           urpmq repo: Nonfree Updates (private13)
           /mirror/Mageia/distrib/3/x86_64/media/nonfree/updates
           urpmq repo: Tainted Release (private21)
           /mirror/Mageia/distrib/3/x86_64/media/tainted/release
           urpmq repo: Tainted Updates (private23)
           /mirror/Mageia/distrib/3/x86_64/media/tainted/updates
           urpmq repo: Core 32bit Release (private31)
           /mirror/Mageia/distrib/3/i586/media/core/release
           urpmq repo: Core 32bit Updates (private33)
           /mirror/Mageia/distrib/3/i586/media/core/updates
           urpmq repo: chrome_x86_64
           http://dl.google.com/linux/chrome/rpm/stable/x86_64
           urpmq repo: google-earth
           http://dl.google.com/linux/earth/rpm/stable/x86_64
           urpmq repo: iscan
           ftp://192.168.0.2/pub/mirror/iscan

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: inxi now shows Mageia repos

Postby viking60 » Oct 7th, '13, 15:55

Good work there dbg.Image

Being a privacy junkie I think that
Code: Select all
inxi -v7 -rz
would provide the same info without the mac addresses and IP's.
That z switch is a nice thing.
Now inxi is complete on Mageia too - and what a great tool it truly is.Image
It can even save the world

I bet it will be pre-installed on the next release....
Image Flexibility is good and inxi is good... install both!
User avatar
viking60
 
Posts: 255
Joined: Mar 19th, '11, 22:26


Return to The magician suggests...

Who is online

Users browsing this forum: No registered users and 1 guest

cron