Install and update Go applications with Soft
Install Soft, use it to install an application with its menu entry, and keep everything updated with one command.
go install builds a Go program and puts it in ~/go/bin. That is enough for a command-line tool, but an application with a window also needs an entry in your desktop’s menu, an icon, and a way to update. Soft does that part.
This guide installs Soft, installs an application with it, and shows the commands you will use afterwards.
What you need#
- Linux or macOS.
- Go 1.21 or newer in your
PATH. Rungo versionto check. An application may ask for a newer Go than Soft does; its own page says which.
Soft needs no root. Everything it writes is in your own folders.
Install Soft#
go install github.com/rm4n0s/soft/cmd/soft@latest
soft install github.com/rm4n0s/soft/cmd/gsoft github.com/rm4n0s/soft/cmd/tsoft
The first line installs the command line. With the second line, Soft installs its own desktop app (gsoft) and terminal UI (tsoft), with their menu entries and Soft’s logo.
If your shell says that soft is not found, the folder where Go puts programs is not in your PATH. It is GOBIN if you set it, else ~/go/bin.
Install an application#
Give Soft a repository. It lists the repository’s programs and asks which ones you want: the desktop applications first, with their names, then the command-line programs.
soft install github.com/rm4n0s/tube
The programs are built by your own Go command, exactly like go install, and go to the same folder. Soft downloads nothing by itself, so your proxy and checksum settings apply.
A desktop application also gets:
- on Linux, a menu entry in
~/.local/share/applicationsand its icons under~/.local/share/icons, so it shows up in GNOME, KDE Plasma, Xfce and the launchers of Sway and Hyprland; - on macOS, an app bundle in
~/Applications, so Launchpad, Spotlight and the Finder show it.
A package path works too, as with go install:
soft install github.com/rm4n0s/cave/cmd/cave
Choose a version#
Without a version, Soft installs latest. Add @ and a version to ask for another one:
soft install github.com/someone/viewer@v1
soft install github.com/someone/viewer@v1.4.2
Soft remembers what you asked for. latest, v1 or a branch are followed by updates. An exact version such as @v1.4.2 pins the program: updates leave it alone.
Open, list and look#
soft open tube # start it; a program without a window opens in a terminal
soft list # the installed programs, and what the last check found
soft info tube # everything Soft knows of one program, its menu files among it
Update#
soft update --check # only look
soft update # install what is outdated
soft update tube # one program
soft update --self # Soft's own programs
soft update asks the Go command what the version you asked for means now, and builds the programs that are behind.
Remove#
soft remove tube
This takes away the program, its menu entry and its icons.
Find more applications#
soft search viewer # GitHub's repositories with the topic soft-app
soft search --all viewer # all Go repositories
Discover also lists the applications of the GitHub users and organizations that you add as profiles:
soft profile add someone
The terminal UI and the desktop app#
tsoft and gsoft do the same things over the same list of programs and the same settings. Use the one you like, or several at once.
tsoftis a terminal UI. Press?to see the keys.gsoftis a window. If you want, it puts an icon in the system tray that says when updates are available, checks for updates by itself, and starts at login.
Where to go next#
- Make your Go application installable with Soft, if you write applications yourself.
- Soft’s guide has everything else: phones, reviews, the settings and the folders.