From Fedora Project Wiki

(Test script for app streams)
 
(Replaced content with "Usage: sh ./appstream-dnf.sh")
(Tag: Replaced)
Line 1: Line 1:
#!/bin/bash
+
Usage: sh ./appstream-dnf.sh
# 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
 

Revision as of 10:15, 18 November 2019

Usage: sh ./appstream-dnf.sh

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.