How To Install Svgo On Arch And Fedora?
Install svgo
-
Arch Linux
pacman -S nodejs-svgoClick to copy -
Fedora
dnf install nodejs-svgoClick to copy
SVG Optimizer: a Node.js-based tool for optimizing Scalable Vector Graphics files. It applies a series of transformation rules (plugins), which can be toggled individually.
How to use svgo?
Below are few example commands for svgo that you can use in the terminal.
Optimize a file using the default plugins (overwrites the original file):svgo test.svgClick to copyOptimize a file and save the result to another file:svgo test.svg test.min.svgClick to copyOptimize all SVG files within a folder (overwrites the original files):svgo -f path/to/folder/with/svg/filesClick to copyOptimize all SVG files within a folder and save the resulting files to another folder:svgo -f path/to/input/folder -o path/to/output/folderClick to copyOptimize SVG content passed from another command, and save the result to a file:cat test.svg | svgo -i - -o test.min.svgClick to copyOptimize a file and print out the result:svgo test.svg -o -Click to copyOptimize a file making sure a given plugin is enabled:svgo --enable=plugin_nameClick to copyShow available plugins:svgo --show-pluginsClick to copy
To install the latest version of svgo in your favorite operating system just copy the svgo installation command from above and paste it into terminal. It will download and install the latest version of svgo 2026 package in your OS.




