How to Install and Uninstall ruby2.7-rubygem-pg Package on openSuSE Tumbleweed

Last updated: December 24,2024

1. Install "ruby2.7-rubygem-pg" package

This tutorial shows how to install ruby2.7-rubygem-pg on openSuSE Tumbleweed

$ sudo zypper refresh $ sudo zypper install ruby2.7-rubygem-pg

2. Uninstall "ruby2.7-rubygem-pg" package

This is a short guide on how to uninstall ruby2.7-rubygem-pg on openSuSE Tumbleweed:

$ sudo zypper remove ruby2.7-rubygem-pg

3. Information about the ruby2.7-rubygem-pg package on openSuSE Tumbleweed

Information for package ruby2.7-rubygem-pg:
-------------------------------------------
Repository : openSUSE-Tumbleweed-Oss
Name : ruby2.7-rubygem-pg
Version : 1.2.3-1.10
Arch : x86_64
Vendor : openSUSE
Installed Size : 970,4 KiB
Installed : No
Status : not installed
Source package : rubygem-pg-1.2.3-1.10.src
Summary : Pg is the Ruby interface to the PostgreSQL RDBMS
Description :
Pg is the Ruby interface to the {PostgreSQL
RDBMS}[http://www.postgresql.org/].
It works with {PostgreSQL 9.2 and
later}[http://www.postgresql.org/support/versioning/].
A small example usage:
require 'pg'
conn = PG.connect( dbname: 'sales' )
conn.exec( "SELECT * FROM pg_stat_activity" ) do |result|
puts " PID | User | Query"
result.each do |row|
puts " %7d | | %s " %
row.values_at('procpid', 'usename', 'current_query')
end
end.