[GRASS-user] How to use g.extension in GRASS7.8

Markus Neteler neteler at osgeo.org
Mon Jan 9 05:29:11 PST 2023


Hi,

On Mon, Jan 9, 2023 at 11:50 AM Bernardo Santos via grass-user
<grass-user at lists.osgeo.org> wrote:
>
> Hi,
>
> I am trying to install the extension r.area using the g.extension tool in GRASS 7.8.
> However, I get the error that it was not found in the Github repo (because the repo changed).
> Here the error:
>
> > g.extension extension=r.area
> Fetching <r.area> from GRASS GIS Addons repository (be patient)...
> svn: E170000: URL 'https://github.com/OSGeo/grass-addons/trunk/grass7/raster/r.area' doesn't exist
> ERROR: GRASS Addons <r.area> not found
>
> I tried adding url=https://github.com/OSGeo/grass-addons/tree/grass8/src/raster/r.area" but it also does not work:
> > g.extension extension=r.area url=https://github.com/OSGeo/grass-addons/tree/grass8/src/raster/r.area
>  The command:
> g.extension extension=r.area url=https://github.com/OSGeo/grass-addons/tree/grass8/src/raster/r.area operation=add
> produced an error (1) during execution:
> Fetching <r.area> from
> <https://github.com/OSGeo/grass-addons/tree/grass8/src/raster/r.area/archive/master.zip>
> (be patient)...
> ERROR: Extension <r.area> not found
>
> How should I proceed to install it in GRASS 7.8?

It should work like this (g.extension will figure out the correct path):

g.extension extension=r.area

HTH,
Markus

PS: Full path is only needed when the addon isn't part of the standard
addon repository but found elsewhere.


More information about the grass-user mailing list