CNF(1)

πŸ“¦ version 0.7.1~0, in opensuse-leap 16.0

πŸ’– CNF(1) πŸ’–

okay so bestie, this is cnf from the General Commands Manual, and it is literally the command-not-found handler for openSUSE 🫢. You type a command, the shell is like β€œbestie I don't know her,” and cnf pulls up with the package receipts. Iconic.


✨ NAME ✨

cnf β€” a command not found handler for openSUSE πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

cnf {binary}

πŸ’… DESCRIPTION πŸ’…

okay so here's the whole vibe: cnf searches for a package name(s) which installs the binary. It uses libsolv(3) under the hood. It's the source of truth of information about repositories, packages and their content. No cap.

It is typically called through command-not-found mechanism of bash(1) or zsh(1) or fish(1). This is enabled via installing the cnf-bash or cnf-zsh packages. Simply typing a missing command executes the handler. So you don't have to do anything extra, it just happens ✨.

Like, say you type this missing command:

       cmake

       The program 'cmake' can be found in following packages:
         * cmake-full [ path: /usr/bin/cmake, repository: zypp (repo-oss) ]
         * cmake-mini [ path: /usr/bin/cmake, repository: zypp (repo-oss) ]

       Try installing with:
           sudo zypper install <selected_package>

obsessed with the way it gives you the exact package names and then the little install command. Slay.

πŸ”₯ SEE ALSO πŸ”₯

these are the linked girlies, iykyk 🧚

πŸ’€ BUGS πŸ’€

No support for localization other than UTF-8. That's the note, bestie. UTF-8 only, periodt.

πŸ‘‘ AUTHOR πŸ‘‘

Michal Vyskocil <mvyskocil@opensuse.org>

https://github.com/openSUSE/cnf

mwah πŸ’‹ β€” this glow-up is from CNF(1), dated 26 June 2023 πŸŽ€

πŸ“¦ where this page comes from