From Fedora Project Wiki

Revision as of 10:14, 18 November 2019 by Mglantz (talk | contribs) (Test script for app streams)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Appstream-dnf.sh(file size: 780 bytes, MIME type: application/x-bash)
Warning: This file type may contain malicious code. By executing it, your system may be compromised.
  1. !/bin/bash
  2. Test script for appstreams, Magnus Glantz, mglantz@fedoraproject.org, 2019

echo "Enabling postgresql 11 app stream" dnf module enable postgresql:11 -y

echo "Looking for postgresql-server, version 11" if dnf info postgresql-server|grep Version|grep ": 11"; then

       echo "Found."

else

       echo "Error: Did not find postgresql-server version 11."

fi

echo "Disabling postgresql 11 app stream" dnf module disable postgresql -y

echo "Enabling postgresql 12 app stream" dnf module enable postgresql:12 -y

if dnf info postgresql-server|grep Version|grep ": 12"; then

       echo "Found."

else

       echo "Error: Did not find postgresql-server version 12."

fi

echo "Resetting environment. Disabling postgresql app stream." dnf module disable postgresql -y

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current10:17, 18 November 2019 (780 bytes)Mglantz (talk | contribs)Test script for appstreams
  • You cannot overwrite this file.

There are no pages that use this file.