hippy
Posts: 7422
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

A plea for Pi package naming consistency

Wed Jul 08, 2020 2:48 pm

Code: Select all

pi@Pi3B:~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  raspi-config rp-prefapps rpi-eeprom xserver-common xserver-xephyr
  xserver-xorg-core
"raspi-", "rp-", "rpi-", plus "raspberrypi-" elsewhere : Please can we settle on one common prefix for Pi packages and executables and stick with that, or have some explanation as to why that's not appropriate.

I know it's not the biggest thing in the universe to fret over but I am finding it an increasing annoyance, typing "raspi-" when it should be "rpi-" and vice-versa, trying to remember which it is for what I am wanting to use.

User avatar
thagrol
Posts: 2941
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: A plea for Pi package naming consistency

Wed Jul 08, 2020 3:37 pm

I know this isn't a direct answer to your request and puts the work load back on you but in the absense of standardisation setting up aliases is probably the way for you to go.

Add the alias commands to your .profile, .bashrc, .bash_aliases or the systemwide equivalents in /etc and they'll be loaded when you login or open a terminal session.

You'll probably find some are already setup by default. For example, on my Pi (raspbian/raspios) ls "is" aliased to "ls --color=auto".
Attempts to contact me outside of these forums will be ignored unless signed in triplicate, sent in, sent back, queried, lost, found, subjected to public enquiry, lost again, and finally buried in soft peat for three months and recycled as firelighters

W. H. Heydt
Posts: 12402
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: A plea for Pi package naming consistency

Wed Jul 08, 2020 4:34 pm

How many package names do you generally have to remember and type? Of the Raspberry Pi ones, I think the only ones I've used are raspi-config (that goes *way* back), rpi-update and rpi-eeprom-update. I am likely to have to start using camera handling commands in the near (as in weeks, not months) future, probably starting with raspistill. This is not a strain even on my old, and becoming erratic, memory.

mob-i-l
Posts: 313
Joined: Sat Dec 29, 2012 2:45 am
Location: Lund, Skåne/Scania, Sweden
Contact: Website Facebook Google+ Twitter YouTube

Re: A plea for Pi package naming consistency

Wed Jul 08, 2020 4:48 pm

hippy wrote:
Wed Jul 08, 2020 2:48 pm
"raspi-", "rp-", "rpi-", plus "raspberrypi-" elsewhere : Please can we settle on one common prefix for Pi packages and executables and stick with that, or have some explanation as to why that's not appropriate.

I know it's not the biggest thing in the universe to fret over but I am finding it an increasing annoyance, typing "raspi-" when it should be "rpi-" and vice-versa, trying to remember which it is for what I am wanting to use.
I agree!

Code: Select all

$ raspi[Tab]
raspi-config  raspistill    raspividyuv   
raspi-gpio    raspivid      raspiyuv      
$ rp[Tab]
rp-bookshelf       rpc.gssd           rpc.svcgssd        rpi-update
rpcbind            rpc.idmapd         rpi-eeprom-config  rp-prefapps
rpcdebug           rpcinfo            rpi-eeprom-update  
rpcgen             rpc.statd          rpi-imager
rp- is not a very good prefix since rpc exists, but rpi- works. The only of the rp-, rpi-, and raspi programs that have man pages are rpi-eeprom-config and rpi-eeprom-update. Creating aliases doesn't help the man pages or the apt upgrade because they will still use the original names. BTW I think all rp-, rpi-, and raspi programs should have man pages.
Have Pi0&1A&1B&1B+&2B&3B&4B w/ Raspbian. Started w/ BASIC on ABC80&ZX81 then Forth, Z80… https://scratch.mit.edu/users/mobluse/ https://github.com/mobluse/ https://twitter.com/mobluse/ https://YouTube.com/MOBiL4u/

User avatar
thagrol
Posts: 2941
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: A plea for Pi package naming consistency

Wed Jul 08, 2020 5:31 pm

mob-i-l wrote:
Wed Jul 08, 2020 4:48 pm
Creating aliases doesn't help the man pages or the apt upgrade because they will still use the original names.
No, it doesn't but I'm not sure I suggested it did. Creating aliases does provide an immediate, short term solution to the problem though.
BTW I think all rp-, rpi-, and raspi programs should have man pages.
Don't disagree with you there. But sadly, in my experience, a lot of folks asking for help on here don't read them or even know they exists (or know how to access them). Same goes for the almost* standard -h/--help command option and unlike a man page that'll still work when aliased.

Going back to the original issue, I suspect a forum post isn't the best way to bring these issue to the attention of the devs. Opening issues(s) on the apropriate github(s) may be better.

*: not every command supports it and some use -h for other purposes.
Attempts to contact me outside of these forums will be ignored unless signed in triplicate, sent in, sent back, queried, lost, found, subjected to public enquiry, lost again, and finally buried in soft peat for three months and recycled as firelighters

User avatar
neilgl
Posts: 2084
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: A plea for Pi package naming consistency

Wed Jul 08, 2020 5:34 pm

I am using raspi-gpio a lot these days.

hippy
Posts: 7422
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: A plea for Pi package naming consistency

Wed Jul 08, 2020 6:30 pm

W. H. Heydt wrote:
Wed Jul 08, 2020 4:34 pm
How many package names do you generally have to remember and type?
Not that many, it's just remembering which is which. But I had a heck of a job finding where the "bookshelf" app was because it uses an "rp-" prefix and I'd made an incorrect assumption.

And I'd forgotten about the "usbboot" package which provides the "rpiboot" app :roll:
neilgl wrote:
Wed Jul 08, 2020 5:34 pm
I am using raspi-gpio a lot these days.
Not to be confused with plain "gpio" :D

ejolson
Posts: 5157
Joined: Tue Mar 18, 2014 11:47 am

Re: A plea for Pi package naming consistency

Wed Jul 08, 2020 6:56 pm

hippy wrote:
Wed Jul 08, 2020 2:48 pm

Code: Select all

pi@Pi3B:~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  raspi-config rp-prefapps rpi-eeprom xserver-common xserver-xephyr
  xserver-xorg-core
"raspi-", "rp-", "rpi-", plus "raspberrypi-" elsewhere : Please can we settle on one common prefix for Pi packages and executables and stick with that, or have some explanation as to why that's not appropriate.

I know it's not the biggest thing in the universe to fret over but I am finding it an increasing annoyance, typing "raspi-" when it should be "rpi-" and vice-versa, trying to remember which it is for what I am wanting to use.
I like this idea. Maybe on Monday all programs could start with rp-, then on Tuesday with rpi-, Wednesday could be rasp-, Thursday pios-, Friday raspi- and on Saturday and Sunday all the Pi related packages could take a rest.

User avatar
davidcoton
Posts: 4899
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK
Contact: Website

Re: A plea for Pi package naming consistency

Wed Jul 08, 2020 8:57 pm

ejolson wrote:
Wed Jul 08, 2020 6:56 pm
hippy wrote:
Wed Jul 08, 2020 2:48 pm
"raspi-", "rp-", "rpi-", plus "raspberrypi-" elsewhere :
I like this idea. Maybe on Monday all programs could start with rp-, then on Tuesday with rpi-, Wednesday could be rasp-, Thursday pios-, Friday raspi- and on Saturday and Sunday all the Pi related packages could take a rest.
Why not go the whole hog and use a random prefix for each program or package, changing at a random time each day? Could be implemented on a per-(raspi-,rp-,rpi-, raspberrypi-) basis too, just for extra interest supporting users. :lol:
Signature retired

User avatar
thagrol
Posts: 2941
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: A plea for Pi package naming consistency

Wed Jul 08, 2020 9:15 pm

hippy wrote:
Wed Jul 08, 2020 6:30 pm
W. H. Heydt wrote:
Wed Jul 08, 2020 4:34 pm
How many package names do you generally have to remember and type?
Not that many, it's just remembering which is which. But I had a heck of a job finding where the "bookshelf" app was because it uses an "rp-" prefix and I'd made an incorrect assumption.

And I'd forgotten about the "usbboot" package which provides the "rpiboot" app :roll:
neilgl wrote:
Wed Jul 08, 2020 5:34 pm
I am using raspi-gpio a lot these days.
Not to be confused with plain "gpio" :D
A thought occurs: it's not the package names you want to see changed it's the program names. Might seem a trivial or picky distinction but it really isn't.
Attempts to contact me outside of these forums will be ignored unless signed in triplicate, sent in, sent back, queried, lost, found, subjected to public enquiry, lost again, and finally buried in soft peat for three months and recycled as firelighters

User avatar
neilgl
Posts: 2084
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: A plea for Pi package naming consistency

Wed Jul 08, 2020 9:20 pm

Did I miss something again - there is raspi-gpio from the command line, not gpio ?

hippy
Posts: 7422
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: A plea for Pi package naming consistency

Wed Jul 08, 2020 10:22 pm

Code: Select all

pi@Pi4B:~/apps/picaxe $ gpio -v
gpio version: 2.50
Copyright (c) 2012-2018 Gordon Henderson
I would take it that it's not an official Pi developed app but I believe it comes pre-installed with the Raspberry Pi OS.

User avatar
DougieLawson
Posts: 38849
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: A plea for Pi package naming consistency

Wed Jul 08, 2020 10:33 pm

neilgl wrote:
Wed Jul 08, 2020 9:20 pm
Did I miss something again - there is raspi-gpio from the command line, not gpio ?
Both exist on my system.

raspi-gpio is an RPF/RPTL program.
gpio is part of WiringPi.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
neilgl
Posts: 2084
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: A plea for Pi package naming consistency

Wed Jul 08, 2020 10:44 pm

Ah I did not miss anything - these days I don't install wiringpi (unfortunately)

Return to “General discussion”