Hi all,

I am about to do a bit of a distro hop, and I am looking at Fedora and its spins, after years on Debian / POP.

I am not looking forward to setting it all up again, it’s a drag.

I wonder, is there a tool that lets me script installs?

I’ll want to check if application exists, and if so, update, otherwise, install. That kind of thing.

Things like:

  • Telegram
  • Joplin
  • Docker
  • Firefox
  • Ungoogle Chromium
  • Sublime Text
  • VSCodium
  • Keepass
  • Thunderbird
  • DBeaver
  • Gimp
  • Inkscape
  • KDENLive
  • Syncthing
  • Steam
  • VLC
  • Localsend
  • Flameshot
  • Element
  • Cherrytree
  • Calibre
  • Anydesk

I show the list, only to give an idea of what might be involved.

I’m new to Fedora, so not sure how it differs beyond the package manager. But, thought I’d ask.

Does such a tool exist, and is it worth my time? I can practice on a VM before trying on the final install/s.

Thank you

You are viewing a single thread.
View all comments View context
8 points
*

Just installing applications is pretty easy though.

---
- hosts: localhost
  become: yes
  tasks:
    - name: Install required software
      dnf:
        state: latest
        name:
          - firefox
          - telegram
          - calibre

ansible-playbook install.yml

Something like that (untested)

permalink
report
parent
reply
1 point
*

I distinctly remember yum/dnf should be using a loop. Forget why but it’s recommended. Here’s a snippet from my playbook. Simply make the vars as you need and run.

  - name: Install flathub as remote
    ansible.builtin.shell:
      cmd: flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
    tags:
      - apps

  - name: Install flatpak apps
    community.general.flatpak:
      name: "{{ item }}"
      state: present
    loop: "{{ flatpaks }}"
    tags:
      - apps

  - name: Remove some default unused packages
    ansible.builtin.dnf:
      name: "{{ item }}"
      state: absent
      update_cache: no
    loop: "{{ remove }}"
    ignore_errors: true
    tags:
      - apps

  - name: Install our packages
    ansible.builtin.dnf:
      name: "{{ item }}"
      state: present
      update_cache: yes
    loop: "{{ rpms }}"
    ignore_errors: true
    tags:
      - apps```

On mobile. Apologies if formatting is off.
permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 8K

    Monthly active users

  • 3.7K

    Posts

  • 48K

    Comments