Page 1 of 1

inxi now shows Mageia repos

PostPosted: Oct 5th, '13, 11:18
by dbg
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

Re: inxi now shows Mageia repos

PostPosted: Oct 5th, '13, 19:07
by doktor5000
Thanks for sharing :)

Re: inxi now shows Mageia repos

PostPosted: Oct 5th, '13, 21:17
by jkerr82508
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

Re: inxi now shows Mageia repos

PostPosted: Oct 6th, '13, 02:51
by dbg
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.

Re: inxi now shows Mageia repos

PostPosted: Oct 6th, '13, 03:10
by jkerr82508
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

Re: inxi now shows Mageia repos

PostPosted: Oct 6th, '13, 03:24
by dbg
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?

Re: inxi now shows Mageia repos

PostPosted: Oct 6th, '13, 03:41
by jkerr82508
Yes. They work. :)

Jim

Re: inxi now shows Mageia repos

PostPosted: Oct 6th, '13, 03:57
by Ken-Bergen
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

Re: inxi now shows Mageia repos

PostPosted: Oct 6th, '13, 04:21
by jkerr82508
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

Re: inxi now shows Mageia repos

PostPosted: Oct 6th, '13, 21:08
by dbg
The inxi programmer fixed it! Do another

Code: Select all
inxi -U


to update to verion 1.9.16

Re: inxi now shows Mageia repos

PostPosted: Oct 6th, '13, 22:35
by jkerr82508
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

Re: inxi now shows Mageia repos

PostPosted: Oct 7th, '13, 15:55
by viking60
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....