How to Install Gnome Shell Extensions from ZIP File using command line

· 169 words · 1 minute read

First check your gnome version:

$ gnome-shell --version
GNOME shell 3.36.4

Then go to location where your downloaded ZIP file, for me its Downloads directory.

cd ~/Downloads/

Get the extension UUID from metadata.json by this command.

$ unzip -c dash-to-dock-micxgx.gmail.com.v68.shell-extension.zip metadata.json | grep uuid | cut -d \" -f4
[email protected]

Or simply open metadata.json file and copy the UUID value. For me it is [email protected].

Create destination directory for the gnome extension.

mkdir -p ~/.local/share/gnome-shell/extensions/[email protected]

Unzip gnome extension file into the directory we made in the previous step, using this command.

unzip -q dash-to-dock-micxgx.gmail.com.v68.shell-extension.zip -d ~/.local/share/gnome-shell/extensions/[email protected]/

Then enable gnome extension with this command.

gnome-shell-extension-tool -e [email protected]

if this warning gnome-shell-extension-tool is depricated, use gnome-extensions instead appeared, use the following command.

gnome-extensions enable [email protected]

Don’t forget to replace the UUID of the extension with the one you want to install.

Note that the $ in front of commands means that this command is run as normal user. but # means that the command should be run as root using sudo.

Share:
waffarx cash back