How to Install and Uninstall ruby2.5-rubygem-pg Package on openSUSE Leap
Last updated: November 07,2024
1. Install "ruby2.5-rubygem-pg" package
This is a short guide on how to install ruby2.5-rubygem-pg on openSUSE Leap
$
sudo zypper refresh
Copied
$
sudo zypper install
ruby2.5-rubygem-pg
Copied
2. Uninstall "ruby2.5-rubygem-pg" package
This guide let you learn how to uninstall ruby2.5-rubygem-pg on openSUSE Leap:
$
sudo zypper remove
ruby2.5-rubygem-pg
Copied
3. Information about the ruby2.5-rubygem-pg package on openSUSE Leap
Information for package ruby2.5-rubygem-pg:
-------------------------------------------
Repository : Main Repository
Name : ruby2.5-rubygem-pg
Version : 1.2.3-bp155.2.13
Arch : x86_64
Vendor : openSUSE
Installed Size : 959.8 KiB
Installed : No
Status : not installed
Source package : rubygem-pg-1.2.3-bp155.2.13.src
Upstream URL : https://github.com/ged/ruby-pg
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.
-------------------------------------------
Repository : Main Repository
Name : ruby2.5-rubygem-pg
Version : 1.2.3-bp155.2.13
Arch : x86_64
Vendor : openSUSE
Installed Size : 959.8 KiB
Installed : No
Status : not installed
Source package : rubygem-pg-1.2.3-bp155.2.13.src
Upstream URL : https://github.com/ged/ruby-pg
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.