mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-01-31 13:57:59 +00:00
1 line
9.4 KiB
JSON
1 line
9.4 KiB
JSON
{"pageProps":{"metadata":{"date":"\"2021-06-04 07:39:11 +08:00\"","date_modified":"\"2021-11-08 20:12:02 +08:00\"","language":"en","source":""},"title":"Command line: Flatpak","hast":{"type":"root","children":[{"type":"element","tagName":"nav","properties":{"className":"toc"},"children":[{"type":"element","tagName":"ol","properties":{"className":"toc-level toc-level-1"},"children":[{"type":"element","tagName":"li","data":{"hookArgs":[{"type":"element","tagName":"h1","properties":{"id":"options"},"children":[{"type":"text","value":"Options"}]}]},"properties":{"className":"toc-item toc-item-h1"},"children":[{"type":"element","tagName":"a","properties":{"className":"toc-link toc-link-h1","href":"/cli.flatpak#options"},"children":[{"type":"text","value":"Options"}]}]},{"type":"element","tagName":"li","data":{"hookArgs":[{"type":"element","tagName":"h1","properties":{"id":"subcommands"},"children":[{"type":"text","value":"Subcommands"}]}]},"properties":{"className":"toc-item toc-item-h1"},"children":[{"type":"element","tagName":"a","properties":{"className":"toc-link toc-link-h1","href":"/cli.flatpak#subcommands"},"children":[{"type":"text","value":"Subcommands"}]}]},{"type":"element","tagName":"li","data":{"hookArgs":[{"type":"element","tagName":"h1","properties":{"id":"examples"},"children":[{"type":"text","value":"Examples"}]}]},"properties":{"className":"toc-item toc-item-h1"},"children":[{"type":"element","tagName":"a","properties":{"className":"toc-link toc-link-h1","href":"/cli.flatpak#examples"},"children":[{"type":"text","value":"Examples"}]},{"type":"element","tagName":"ol","properties":{"className":"toc-level toc-level-2"},"children":[{"type":"element","tagName":"li","data":{"hookArgs":[{"type":"element","tagName":"h2","properties":{"id":"basic-usage"},"children":[{"type":"text","value":"Basic usage"}]}]},"properties":{"className":"toc-item toc-item-h2"},"children":[{"type":"element","tagName":"a","properties":{"className":"toc-link toc-link-h2","href":"/cli.flatpak#basic-usage"},"children":[{"type":"text","value":"Basic usage"}]}]},{"type":"element","tagName":"li","data":{"hookArgs":[{"type":"element","tagName":"h2","properties":{"id":"package-installation-interface"},"children":[{"type":"text","value":"Package installation interface"}]}]},"properties":{"className":"toc-item toc-item-h2"},"children":[{"type":"element","tagName":"a","properties":{"className":"toc-link toc-link-h2","href":"/cli.flatpak#package-installation-interface"},"children":[{"type":"text","value":"Package installation interface"}]}]},{"type":"element","tagName":"li","data":{"hookArgs":[{"type":"element","tagName":"h2","properties":{"id":"package-uninstallation-interface"},"children":[{"type":"text","value":"Package uninstallation interface"}]}]},"properties":{"className":"toc-item toc-item-h2"},"children":[{"type":"element","tagName":"a","properties":{"className":"toc-link toc-link-h2","href":"/cli.flatpak#package-uninstallation-interface"},"children":[{"type":"text","value":"Package uninstallation interface"}]}]}]}]}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Flatpak is a cross-Linux-distro deployment system commonly used for packaging desktop applications.\n"}]},{"type":"element","tagName":"h1","properties":{"id":"options"},"children":[{"type":"text","value":"Options"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Flatpak has a similar interface to Git being composed of subcommands with specific options.\n"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"-v, --verbose"}]},{"type":"text","value":" - just print more information\n"}]}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Most of the query-related subcommands (e.g., "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"search"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"list"}]},{"type":"text","value":") has the following options.\n"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"--columns=${COLUMNS}"}]},{"type":"text","value":" - print the columns listed; useful for extracting the information you want\n you can find the related fields from the respective manual page\n"}]}]}]},{"type":"element","tagName":"h1","properties":{"id":"subcommands"},"children":[{"type":"text","value":"Subcommands"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"info PACKAGE [BRANCH]"}]},{"type":"text","value":" prints related information of the package.\n"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"-M, --show-permissions"}]},{"type":"text","value":" prints the permissions of the package in a INI-like format.\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"-m, --show-metadata"}]},{"type":"text","value":" prints the metadata in a INI-like format.\n"}]}]}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"remote-ls [REMOTE]"}]},{"type":"text","value":" lists all of the packages of the given remote.\n"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"--app"}]},{"type":"text","value":" only includes standalone applications.\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"--runtime"}]},{"type":"text","value":" only lists runtimes.\n"}]}]}]}]}]},{"type":"element","tagName":"h1","properties":{"id":"examples"},"children":[{"type":"text","value":"Examples"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Flatpak has a lot of stuff so we'll bring some examples to get started.\n"}]},{"type":"element","tagName":"h2","properties":{"id":"basic-usage"},"children":[{"type":"text","value":"Basic usage"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Or at least how I think it would be for a starting user.\n"}]},{"type":"element","tagName":"pre","properties":{"className":["src-block"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-shell"]},"children":[{"type":"text","value":"flatpak search ferdi\n\nflatpak install ferdi\n\nflatpak uninstall ferdi\n"}]}]},{"type":"element","tagName":"h2","properties":{"id":"package-installation-interface"},"children":[{"type":"text","value":"Package installation interface"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"a","properties":{"href":"/cli.fzf"},"children":[{"type":"text","value":"fzf"}]},{"type":"text","value":" is the star here.\n"}]},{"type":"element","tagName":"pre","properties":{"className":["src-block"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-shell"]},"children":[{"type":"text","value":"flatpak search ${QUERY} --columns=application \\\n | fzf --multi --prompt \"Choose Flatpak package(s) to install > \" \\\n | xargs --replace=\"{}\" flatpak install --noninteractive {}\n"}]}]},{"type":"element","tagName":"h2","properties":{"id":"package-uninstallation-interface"},"children":[{"type":"text","value":"Package uninstallation interface"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If there's one for installing packages, there's also one for removing them.\n"}]},{"type":"element","tagName":"pre","properties":{"className":["src-block"]},"children":[{"type":"element","tagName":"code","properties":{"className":["language-shell"]},"children":[{"type":"text","value":"flatpak list ${QUERY} --columns=application \\\n | fzf --multi --prompt \"Choose Flatpak package(s) to remove > \" \\\n | xargs --replace=\"{}\" flatpak uninstall --noninteractive {}\n"}]}]}]},"backlinks":[]},"__N_SSG":true} |