I am having a bit of a brain freeze here but I would like to install pandoc but I don’t want to disable the default steam deck settings to do so even though using pacman on the command line would be way simpler I don’t want to fiddle if I don’t have to fiddle.

https://pandoc.org/

Can I not just download a binary and point Linux towards it? I know this is a silly question but frustratingly I am more familiar with how you are supposed to do this on windows with the $home variable nonsense.

  • Fubarberry@sopuli.xyzM
    link
    fedilink
    English
    arrow-up
    4
    ·
    3 days ago

    The binary is a command line only program, usual format for running it is ./pandoc inputfile -o outputfile"

    If you want it runable anywhere from command line, you can put the downloaded binary in ~/.local/bin

    I don’t know what exactly you want to use pandoc for, but you might also consider Morphosis. It’s in the discovery store and I think it’s a graphical front end for pandoc.

    • khannie@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      3 days ago

      OK so I remembered. Downloaded and extracted it. Not a tool I’m familiar with but it worked fine first time. It’s command line so I opened up a command prompt and got this output (snipped a bit as the output was long):

      (deck@steamdeck ~)$ cd Downloads/pandoc-3.9.0.2/bin/
      (deck@steamdeck bin)$ ./pandoc --help
      pandoc [OPTIONS] [FILES]
        -f FORMAT, -r FORMAT  --from=FORMAT, --read=FORMAT                                          
        -t FORMAT, -w FORMAT  --to=FORMAT, --write=FORMAT                                           
        -o FILE               --output=FILE     
        etc......
      

      Does that help?

      I see you’re coming from windows so how comfortable are you with the command line? I see someone else mentioned that there is a frontend available which might be more useful to you if the answer is “not very”.

      FYI tab is your friend on the command line as it will autofill stuff for you. So I didn’t actually type “cd Downloads/pandoc-3.9.0.2/bin/” I just typed cd Down (tab) p (tab) and it filled it to “cd Downloads/pandoc-3.9.0.2/”

      edit: The ./ is essential once you’re in the directory when you’re running stuff this way. It essentially means “in this directory, run …”. Otherwise the shell will just look in your $PATH directories list and not find “pandoc” anywhere in it. You can add “.” to your $PATH to avoid this but it’s not there by default on the deck.

      Mine is:

      (deck@steamdeck bin)$ echo $PATH
      /usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
      

      Last thing - I know you weren’t confident picking the right package to download. For binaries you’re always looking for stuff with “linux-amd64” or similar in the name for the deck.

      There’s also a cool little community that you might like called “Linux Upskill Challenge” which you can find at:

      !linuxupskillchallenge@programming.dev

      It brings you through basics on a day by day basis and on to slightly more advanced stuff as you go.

      • supersquirrel@sopuli.xyzOP
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        2 days ago

        edit: The ./ is essential once you’re in the directory when you’re running stuff this way. It essentially means “in this directory, run …”. Otherwise the shell will just look in your $PATH directories list and not find “pandoc” anywhere in it. You can add “.” to your $PATH to avoid this but it’s not there by default on the deck.

        This was the issue, I am fairly comfortable with the command line there are just lots of little things that were never explained to me because I have learned it all myself.

        I appreciate the recommendation for a front end engine! I want pandoc for exporting org files to document/website formats from org mode in emacs so I don’t need a front end but I will definitely check it out!

        I actually think I still need to add pandoc to the $PATH directory so emacs can run it though.