PostgreSQL与RPM
2015-11-28 09:42 DataBases 阅读(1023) 评论(0) 编辑 收藏 举报如何查看使用PostgreSQL的RPM包安装后的文件目录及相关路径(PostgreSQLRPM的spec文件已经帮我们创建好了postgres用户及postgres组)。
查看RPM文档信息:/usr/share/doc/rpm-4.11.1
RPM数据库文件:file /var/lib/rpm/* |grep Berkeley
[root@backup soft_bak]# rpm -qpl postgresql94-9.4.5-1PGDG.rhel7.x86_64.rpm
/usr/pgsql-9.4/bin/clusterdb
/usr/pgsql-9.4/bin/createdb
/usr/pgsql-9.4/bin/createlang
/usr/pgsql-9.4/bin/createuser
/usr/pgsql-9.4/bin/dropdb
/usr/pgsql-9.4/bin/droplang
/usr/pgsql-9.4/bin/dropuser
/usr/pgsql-9.4/bin/pg_basebackup
/usr/pgsql-9.4/bin/pg_config
/usr/pgsql-9.4/bin/pg_dump
/usr/pgsql-9.4/bin/pg_dumpall
/usr/pgsql-9.4/bin/pg_isready
/usr/pgsql-9.4/bin/pg_receivexlog
/usr/pgsql-9.4/bin/pg_restore
/usr/pgsql-9.4/bin/pg_test_fsync
/usr/pgsql-9.4/bin/psql
/usr/pgsql-9.4/bin/reindexdb
/usr/pgsql-9.4/bin/vacuumdb
/usr/pgsql-9.4/share/locale/cs/LC_MESSAGES/initdb-9.4.mo
/usr/pgsql-9.4/share/locale/cs/LC_MESSAGES/pg_ctl-9.4.mo
/usr/pgsql-9.4/share/locale/cs/LC_MESSAGES/pg_dump-9.4.mo
/usr/pgsql-9.4/share/locale/cs/LC_MESSAGES/pgscripts-9.4.mo
/usr/pgsql-9.4/share/locale/cs/LC_MESSAGES/psql-9.4.mo
/usr/pgsql-9.4/share/locale/de/LC_MESSAGES/initdb-9.4.mo
/usr/pgsql-9.4/share/locale/de/LC_MESSAGES/pg_basebackup-9.4.mo
/usr/pgsql-9.4/share/locale/de/LC_MESSAGES/pg_ctl-9.4.mo
/usr/pgsql-9.4/share/locale/de/LC_MESSAGES/pg_dump-9.4.mo
/usr/pgsql-9.4/share/locale/de/LC_MESSAGES/pgscripts-9.4.mo
/usr/pgsql-9.4/share/locale/de/LC_MESSAGES/psql-9.4.mo
/usr/pgsql-9.4/share/locale/es/LC_MESSAGES/initdb-9.4.mo
/usr/pgsql-9.4/share/locale/es/LC_MESSAGES/pg_basebackup-9.4.mo
/usr/pgsql-9.4/share/locale/es/LC_MESSAGES/pg_ctl-9.4.mo
/usr/pgsql-9.4/share/locale/es/LC_MESSAGES/pg_dump-9.4.mo
/usr/pgsql-9.4/share/locale/es/LC_MESSAGES/pgscripts-9.4.mo
/usr/pgsql-9.4/share/locale/es/LC_MESSAGES/psql-9.4.mo
/usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/initdb-9.4.mo
/usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/pg_basebackup-9.4.mo
/usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/pg_ctl-9.4.mo
/usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/pg_dump-9.4.mo
/usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/pgscripts-9.4.mo
/usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/psql-9.4.mo
/usr/pgsql-9.4/share/locale/it/LC_MESSAGES/initdb-9.4.mo
/usr/pgsql-9.4/share/locale/it/LC_MESSAGES/pg_basebackup-9.4.mo
/usr/pgsql-9.4/share/locale/it/LC_MESSAGES/pg_ctl-9.4.mo
/usr/pgsql-9.4/share/locale/it/LC_MESSAGES/pg_dump-9.4.mo
/usr/pgsql-9.4/share/locale/it/LC_MESSAGES/pgscripts-9.4.mo
/usr/pgsql-9.4/share/locale/it/LC_MESSAGES/psql-9.4.mo
/usr/pgsql-9.4/share/locale/ja/LC_MESSAGES/initdb-9.4.mo
/usr/pgsql-9.4/share/locale/ja/LC_MESSAGES/pg_ctl-9.4.mo
/usr/pgsql-9.4/share/locale/ja/LC_MESSAGES/pg_dump-9.4.mo
/usr/pgsql-9.4/share/locale/ja/LC_MESSAGES/pgscripts-9.4.mo
/usr/pgsql-9.4/share/locale/ja/LC_MESSAGES/psql-9.4.mo
/usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/initdb-9.4.mo
/usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/pg_basebackup-9.4.mo
/usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/pg_ctl-9.4.mo
/usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/pg_dump-9.4.mo
/usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/pgscripts-9.4.mo
/usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/psql-9.4.mo
/usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/initdb-9.4.mo
/usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/pg_basebackup-9.4.mo
/usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/pg_ctl-9.4.mo
/usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/pg_dump-9.4.mo
/usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/pgscripts-9.4.mo
/usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/psql-9.4.mo
/usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/initdb-9.4.mo
/usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/pg_basebackup-9.4.mo
/usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/pg_ctl-9.4.mo
/usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/pg_dump-9.4.mo
/usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/pgscripts-9.4.mo
/usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/psql-9.4.mo
/usr/pgsql-9.4/share/locale/sv/LC_MESSAGES/initdb-9.4.mo
/usr/pgsql-9.4/share/locale/sv/LC_MESSAGES/pg_ctl-9.4.mo
/usr/pgsql-9.4/share/locale/sv/LC_MESSAGES/pgscripts-9.4.mo
/usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/initdb-9.4.mo
/usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/pg_basebackup-9.4.mo
/usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/pg_ctl-9.4.mo
/usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/pg_dump-9.4.mo
/usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/pgscripts-9.4.mo
/usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/psql-9.4.mo
/usr/pgsql-9.4/share/locale/zh_TW/LC_MESSAGES/psql-9.4.mo
/usr/pgsql-9.4/share/man/man1/clusterdb.1
/usr/pgsql-9.4/share/man/man1/createdb.1
/usr/pgsql-9.4/share/man/man1/createlang.1
/usr/pgsql-9.4/share/man/man1/createuser.1
/usr/pgsql-9.4/share/man/man1/dropdb.1
/usr/pgsql-9.4/share/man/man1/droplang.1
/usr/pgsql-9.4/share/man/man1/dropuser.1
/usr/pgsql-9.4/share/man/man1/pg_basebackup.1
/usr/pgsql-9.4/share/man/man1/pg_config.1
/usr/pgsql-9.4/share/man/man1/pg_dump.1
/usr/pgsql-9.4/share/man/man1/pg_dumpall.1
/usr/pgsql-9.4/share/man/man1/pg_isready.1
/usr/pgsql-9.4/share/man/man1/pg_receivexlog.1
/usr/pgsql-9.4/share/man/man1/pg_restore.1
/usr/pgsql-9.4/share/man/man1/psql.1
/usr/pgsql-9.4/share/man/man1/reindexdb.1
/usr/pgsql-9.4/share/man/man1/vacuumdb.1
/usr/pgsql-9.4/share/man/man3/SPI_connect.3
/usr/pgsql-9.4/share/man/man3/SPI_copytuple.3
/usr/pgsql-9.4/share/man/man3/SPI_cursor_close.3
/usr/pgsql-9.4/share/man/man3/SPI_cursor_fetch.3
/usr/pgsql-9.4/share/man/man3/SPI_cursor_find.3
/usr/pgsql-9.4/share/man/man3/SPI_cursor_move.3
/usr/pgsql-9.4/share/man/man3/SPI_cursor_open.3
/usr/pgsql-9.4/share/man/man3/SPI_cursor_open_with_args.3
/usr/pgsql-9.4/share/man/man3/SPI_cursor_open_with_paramlist.3
/usr/pgsql-9.4/share/man/man3/SPI_exec.3
/usr/pgsql-9.4/share/man/man3/SPI_execp.3
/usr/pgsql-9.4/share/man/man3/SPI_execute.3
/usr/pgsql-9.4/share/man/man3/SPI_execute_plan.3
/usr/pgsql-9.4/share/man/man3/SPI_execute_plan_with_paramlist.3
/usr/pgsql-9.4/share/man/man3/SPI_execute_with_args.3
/usr/pgsql-9.4/share/man/man3/SPI_finish.3
/usr/pgsql-9.4/share/man/man3/SPI_fname.3
/usr/pgsql-9.4/share/man/man3/SPI_fnumber.3
/usr/pgsql-9.4/share/man/man3/SPI_freeplan.3
/usr/pgsql-9.4/share/man/man3/SPI_freetuple.3
/usr/pgsql-9.4/share/man/man3/SPI_freetuptable.3
/usr/pgsql-9.4/share/man/man3/SPI_getargcount.3
/usr/pgsql-9.4/share/man/man3/SPI_getargtypeid.3
/usr/pgsql-9.4/share/man/man3/SPI_getbinval.3
/usr/pgsql-9.4/share/man/man3/SPI_getnspname.3
/usr/pgsql-9.4/share/man/man3/SPI_getrelname.3
/usr/pgsql-9.4/share/man/man3/SPI_gettype.3
/usr/pgsql-9.4/share/man/man3/SPI_gettypeid.3
/usr/pgsql-9.4/share/man/man3/SPI_getvalue.3
/usr/pgsql-9.4/share/man/man3/SPI_is_cursor_plan.3
/usr/pgsql-9.4/share/man/man3/SPI_keepplan.3
/usr/pgsql-9.4/share/man/man3/SPI_modifytuple.3
/usr/pgsql-9.4/share/man/man3/SPI_palloc.3
/usr/pgsql-9.4/share/man/man3/SPI_pfree.3
/usr/pgsql-9.4/share/man/man3/SPI_pop.3
/usr/pgsql-9.4/share/man/man3/SPI_prepare.3
/usr/pgsql-9.4/share/man/man3/SPI_prepare_cursor.3
/usr/pgsql-9.4/share/man/man3/SPI_prepare_params.3
/usr/pgsql-9.4/share/man/man3/SPI_push.3
/usr/pgsql-9.4/share/man/man3/SPI_repalloc.3
/usr/pgsql-9.4/share/man/man3/SPI_returntuple.3
/usr/pgsql-9.4/share/man/man3/SPI_saveplan.3
/usr/pgsql-9.4/share/man/man3/SPI_scroll_cursor_fetch.3
/usr/pgsql-9.4/share/man/man3/SPI_scroll_cursor_move.3
/usr/pgsql-9.4/share/man/man3/dblink.3
/usr/pgsql-9.4/share/man/man3/dblink_build_sql_delete.3
/usr/pgsql-9.4/share/man/man3/dblink_build_sql_insert.3
/usr/pgsql-9.4/share/man/man3/dblink_build_sql_update.3
/usr/pgsql-9.4/share/man/man3/dblink_cancel_query.3
/usr/pgsql-9.4/share/man/man3/dblink_close.3
/usr/pgsql-9.4/share/man/man3/dblink_connect.3
/usr/pgsql-9.4/share/man/man3/dblink_connect_u.3
/usr/pgsql-9.4/share/man/man3/dblink_disconnect.3
/usr/pgsql-9.4/share/man/man3/dblink_error_message.3
/usr/pgsql-9.4/share/man/man3/dblink_exec.3
/usr/pgsql-9.4/share/man/man3/dblink_fetch.3
/usr/pgsql-9.4/share/man/man3/dblink_get_connections.3
/usr/pgsql-9.4/share/man/man3/dblink_get_notify.3
/usr/pgsql-9.4/share/man/man3/dblink_get_pkey.3
/usr/pgsql-9.4/share/man/man3/dblink_get_result.3
/usr/pgsql-9.4/share/man/man3/dblink_is_busy.3
/usr/pgsql-9.4/share/man/man3/dblink_open.3
/usr/pgsql-9.4/share/man/man3/dblink_send_query.3
/usr/pgsql-9.4/share/man/man7/ABORT.7
/usr/pgsql-9.4/share/man/man7/ALTER_AGGREGATE.7
/usr/pgsql-9.4/share/man/man7/ALTER_COLLATION.7
/usr/pgsql-9.4/share/man/man7/ALTER_CONVERSION.7
/usr/pgsql-9.4/share/man/man7/ALTER_DATABASE.7
/usr/pgsql-9.4/share/man/man7/ALTER_DEFAULT_PRIVILEGES.7
/usr/pgsql-9.4/share/man/man7/ALTER_DOMAIN.7
/usr/pgsql-9.4/share/man/man7/ALTER_EVENT_TRIGGER.7
/usr/pgsql-9.4/share/man/man7/ALTER_EXTENSION.7
/usr/pgsql-9.4/share/man/man7/ALTER_FOREIGN_DATA_WRAPPER.7
/usr/pgsql-9.4/share/man/man7/ALTER_FOREIGN_TABLE.7
/usr/pgsql-9.4/share/man/man7/ALTER_FUNCTION.7
/usr/pgsql-9.4/share/man/man7/ALTER_GROUP.7
/usr/pgsql-9.4/share/man/man7/ALTER_INDEX.7
/usr/pgsql-9.4/share/man/man7/ALTER_LANGUAGE.7
/usr/pgsql-9.4/share/man/man7/ALTER_LARGE_OBJECT.7
/usr/pgsql-9.4/share/man/man7/ALTER_MATERIALIZED_VIEW.7
/usr/pgsql-9.4/share/man/man7/ALTER_OPERATOR.7
/usr/pgsql-9.4/share/man/man7/ALTER_OPERATOR_CLASS.7
/usr/pgsql-9.4/share/man/man7/ALTER_OPERATOR_FAMILY.7
/usr/pgsql-9.4/share/man/man7/ALTER_ROLE.7
/usr/pgsql-9.4/share/man/man7/ALTER_RULE.7
/usr/pgsql-9.4/share/man/man7/ALTER_SCHEMA.7
/usr/pgsql-9.4/share/man/man7/ALTER_SEQUENCE.7
/usr/pgsql-9.4/share/man/man7/ALTER_SERVER.7
/usr/pgsql-9.4/share/man/man7/ALTER_SYSTEM.7
/usr/pgsql-9.4/share/man/man7/ALTER_TABLE.7
/usr/pgsql-9.4/share/man/man7/ALTER_TABLESPACE.7
/usr/pgsql-9.4/share/man/man7/ALTER_TEXT_SEARCH_CONFIGURATION.7
/usr/pgsql-9.4/share/man/man7/ALTER_TEXT_SEARCH_DICTIONARY.7
/usr/pgsql-9.4/share/man/man7/ALTER_TEXT_SEARCH_PARSER.7
/usr/pgsql-9.4/share/man/man7/ALTER_TEXT_SEARCH_TEMPLATE.7
/usr/pgsql-9.4/share/man/man7/ALTER_TRIGGER.7
/usr/pgsql-9.4/share/man/man7/ALTER_TYPE.7
/usr/pgsql-9.4/share/man/man7/ALTER_USER.7
/usr/pgsql-9.4/share/man/man7/ALTER_USER_MAPPING.7
/usr/pgsql-9.4/share/man/man7/ALTER_VIEW.7
/usr/pgsql-9.4/share/man/man7/ANALYZE.7
/usr/pgsql-9.4/share/man/man7/BEGIN.7
/usr/pgsql-9.4/share/man/man7/CHECKPOINT.7
/usr/pgsql-9.4/share/man/man7/CLOSE.7
/usr/pgsql-9.4/share/man/man7/CLUSTER.7
/usr/pgsql-9.4/share/man/man7/COMMENT.7
/usr/pgsql-9.4/share/man/man7/COMMIT.7
/usr/pgsql-9.4/share/man/man7/COMMIT_PREPARED.7
/usr/pgsql-9.4/share/man/man7/COPY.7
/usr/pgsql-9.4/share/man/man7/CREATE_AGGREGATE.7
/usr/pgsql-9.4/share/man/man7/CREATE_CAST.7
/usr/pgsql-9.4/share/man/man7/CREATE_COLLATION.7
/usr/pgsql-9.4/share/man/man7/CREATE_CONVERSION.7
/usr/pgsql-9.4/share/man/man7/CREATE_DATABASE.7
/usr/pgsql-9.4/share/man/man7/CREATE_DOMAIN.7
/usr/pgsql-9.4/share/man/man7/CREATE_EVENT_TRIGGER.7
/usr/pgsql-9.4/share/man/man7/CREATE_EXTENSION.7
/usr/pgsql-9.4/share/man/man7/CREATE_FOREIGN_DATA_WRAPPER.7
/usr/pgsql-9.4/share/man/man7/CREATE_FOREIGN_TABLE.7
/usr/pgsql-9.4/share/man/man7/CREATE_FUNCTION.7
/usr/pgsql-9.4/share/man/man7/CREATE_GROUP.7
/usr/pgsql-9.4/share/man/man7/CREATE_INDEX.7
/usr/pgsql-9.4/share/man/man7/CREATE_LANGUAGE.7
/usr/pgsql-9.4/share/man/man7/CREATE_MATERIALIZED_VIEW.7
/usr/pgsql-9.4/share/man/man7/CREATE_OPERATOR.7
/usr/pgsql-9.4/share/man/man7/CREATE_OPERATOR_CLASS.7
/usr/pgsql-9.4/share/man/man7/CREATE_OPERATOR_FAMILY.7
/usr/pgsql-9.4/share/man/man7/CREATE_ROLE.7
/usr/pgsql-9.4/share/man/man7/CREATE_RULE.7
/usr/pgsql-9.4/share/man/man7/CREATE_SCHEMA.7
/usr/pgsql-9.4/share/man/man7/CREATE_SEQUENCE.7
/usr/pgsql-9.4/share/man/man7/CREATE_SERVER.7
/usr/pgsql-9.4/share/man/man7/CREATE_TABLE.7
/usr/pgsql-9.4/share/man/man7/CREATE_TABLESPACE.7
/usr/pgsql-9.4/share/man/man7/CREATE_TABLE_AS.7
/usr/pgsql-9.4/share/man/man7/CREATE_TEXT_SEARCH_CONFIGURATION.7
/usr/pgsql-9.4/share/man/man7/CREATE_TEXT_SEARCH_DICTIONARY.7
/usr/pgsql-9.4/share/man/man7/CREATE_TEXT_SEARCH_PARSER.7
/usr/pgsql-9.4/share/man/man7/CREATE_TEXT_SEARCH_TEMPLATE.7
/usr/pgsql-9.4/share/man/man7/CREATE_TRIGGER.7
/usr/pgsql-9.4/share/man/man7/CREATE_TYPE.7
/usr/pgsql-9.4/share/man/man7/CREATE_USER.7
/usr/pgsql-9.4/share/man/man7/CREATE_USER_MAPPING.7
/usr/pgsql-9.4/share/man/man7/CREATE_VIEW.7
/usr/pgsql-9.4/share/man/man7/DEALLOCATE.7
/usr/pgsql-9.4/share/man/man7/DECLARE.7
/usr/pgsql-9.4/share/man/man7/DELETE.7
/usr/pgsql-9.4/share/man/man7/DISCARD.7
/usr/pgsql-9.4/share/man/man7/DO.7
/usr/pgsql-9.4/share/man/man7/DROP_AGGREGATE.7
/usr/pgsql-9.4/share/man/man7/DROP_CAST.7
/usr/pgsql-9.4/share/man/man7/DROP_COLLATION.7
/usr/pgsql-9.4/share/man/man7/DROP_CONVERSION.7
/usr/pgsql-9.4/share/man/man7/DROP_DATABASE.7
/usr/pgsql-9.4/share/man/man7/DROP_DOMAIN.7
/usr/pgsql-9.4/share/man/man7/DROP_EVENT_TRIGGER.7
/usr/pgsql-9.4/share/man/man7/DROP_EXTENSION.7
/usr/pgsql-9.4/share/man/man7/DROP_FOREIGN_DATA_WRAPPER.7
/usr/pgsql-9.4/share/man/man7/DROP_FOREIGN_TABLE.7
/usr/pgsql-9.4/share/man/man7/DROP_FUNCTION.7
/usr/pgsql-9.4/share/man/man7/DROP_GROUP.7
/usr/pgsql-9.4/share/man/man7/DROP_INDEX.7
/usr/pgsql-9.4/share/man/man7/DROP_LANGUAGE.7
/usr/pgsql-9.4/share/man/man7/DROP_MATERIALIZED_VIEW.7
/usr/pgsql-9.4/share/man/man7/DROP_OPERATOR.7
/usr/pgsql-9.4/share/man/man7/DROP_OPERATOR_CLASS.7
/usr/pgsql-9.4/share/man/man7/DROP_OPERATOR_FAMILY.7
/usr/pgsql-9.4/share/man/man7/DROP_OWNED.7
/usr/pgsql-9.4/share/man/man7/DROP_ROLE.7
/usr/pgsql-9.4/share/man/man7/DROP_RULE.7
/usr/pgsql-9.4/share/man/man7/DROP_SCHEMA.7
/usr/pgsql-9.4/share/man/man7/DROP_SEQUENCE.7
/usr/pgsql-9.4/share/man/man7/DROP_SERVER.7
/usr/pgsql-9.4/share/man/man7/DROP_TABLE.7
/usr/pgsql-9.4/share/man/man7/DROP_TABLESPACE.7
/usr/pgsql-9.4/share/man/man7/DROP_TEXT_SEARCH_CONFIGURATION.7
/usr/pgsql-9.4/share/man/man7/DROP_TEXT_SEARCH_DICTIONARY.7
/usr/pgsql-9.4/share/man/man7/DROP_TEXT_SEARCH_PARSER.7
/usr/pgsql-9.4/share/man/man7/DROP_TEXT_SEARCH_TEMPLATE.7
/usr/pgsql-9.4/share/man/man7/DROP_TRIGGER.7
/usr/pgsql-9.4/share/man/man7/DROP_TYPE.7
/usr/pgsql-9.4/share/man/man7/DROP_USER.7
/usr/pgsql-9.4/share/man/man7/DROP_USER_MAPPING.7
/usr/pgsql-9.4/share/man/man7/DROP_VIEW.7
/usr/pgsql-9.4/share/man/man7/END.7
/usr/pgsql-9.4/share/man/man7/EXECUTE.7
/usr/pgsql-9.4/share/man/man7/EXPLAIN.7
/usr/pgsql-9.4/share/man/man7/FETCH.7
/usr/pgsql-9.4/share/man/man7/GRANT.7
/usr/pgsql-9.4/share/man/man7/INSERT.7
/usr/pgsql-9.4/share/man/man7/LISTEN.7
/usr/pgsql-9.4/share/man/man7/LOAD.7
/usr/pgsql-9.4/share/man/man7/LOCK.7
/usr/pgsql-9.4/share/man/man7/MOVE.7
/usr/pgsql-9.4/share/man/man7/NOTIFY.7
/usr/pgsql-9.4/share/man/man7/PREPARE.7
/usr/pgsql-9.4/share/man/man7/PREPARE_TRANSACTION.7
/usr/pgsql-9.4/share/man/man7/REASSIGN_OWNED.7
/usr/pgsql-9.4/share/man/man7/REFRESH_MATERIALIZED_VIEW.7
/usr/pgsql-9.4/share/man/man7/REINDEX.7
/usr/pgsql-9.4/share/man/man7/RELEASE_SAVEPOINT.7
/usr/pgsql-9.4/share/man/man7/RESET.7
/usr/pgsql-9.4/share/man/man7/REVOKE.7
/usr/pgsql-9.4/share/man/man7/ROLLBACK.7
/usr/pgsql-9.4/share/man/man7/ROLLBACK_PREPARED.7
/usr/pgsql-9.4/share/man/man7/ROLLBACK_TO_SAVEPOINT.7
/usr/pgsql-9.4/share/man/man7/SAVEPOINT.7
/usr/pgsql-9.4/share/man/man7/SECURITY_LABEL.7
/usr/pgsql-9.4/share/man/man7/SELECT.7
/usr/pgsql-9.4/share/man/man7/SELECT_INTO.7
/usr/pgsql-9.4/share/man/man7/SET.7
/usr/pgsql-9.4/share/man/man7/SET_CONSTRAINTS.7
/usr/pgsql-9.4/share/man/man7/SET_ROLE.7
/usr/pgsql-9.4/share/man/man7/SET_SESSION_AUTHORIZATION.7
/usr/pgsql-9.4/share/man/man7/SET_TRANSACTION.7
/usr/pgsql-9.4/share/man/man7/SHOW.7
/usr/pgsql-9.4/share/man/man7/START_TRANSACTION.7
/usr/pgsql-9.4/share/man/man7/TABLE.7
/usr/pgsql-9.4/share/man/man7/TRUNCATE.7
/usr/pgsql-9.4/share/man/man7/UNLISTEN.7
/usr/pgsql-9.4/share/man/man7/UPDATE.7
/usr/pgsql-9.4/share/man/man7/VACUUM.7
/usr/pgsql-9.4/share/man/man7/VALUES.7
/usr/pgsql-9.4/share/man/man7/WITH.7
/usr/share/doc/postgresql94-9.4.5
/usr/share/doc/postgresql94-9.4.5/COPYRIGHT
/usr/share/doc/postgresql94-9.4.5/KNOWN_BUGS
/usr/share/doc/postgresql94-9.4.5/MISSING_FEATURES
/usr/share/doc/postgresql94-9.4.5/README.rpm-dist
/usr/share/doc/postgresql94-9.4.5/bug.template
[root@backup soft_bak]# rpm -qpl postgresql94-server-9.4.5-1PGDG.rhel7.x86_64.rpm
/etc/pam.d/postgresql94
/etc/sysconfig/pgsql
/usr/lib/systemd/system/postgresql-9.4.service
/usr/lib/tmpfiles.d/postgresql-9.4.conf
/usr/pgsql-9.4/bin/initdb
/usr/pgsql-9.4/bin/pg_controldata
/usr/pgsql-9.4/bin/pg_ctl
/usr/pgsql-9.4/bin/pg_resetxlog
/usr/pgsql-9.4/bin/postgres
/usr/pgsql-9.4/bin/postgresql94-check-db-dir
/usr/pgsql-9.4/bin/postgresql94-setup
/usr/pgsql-9.4/bin/postmaster
/usr/pgsql-9.4/lib
/usr/pgsql-9.4/lib/ascii_and_mic.so
/usr/pgsql-9.4/lib/cyrillic_and_mic.so
/usr/pgsql-9.4/lib/dict_int.so
/usr/pgsql-9.4/lib/dict_snowball.so
/usr/pgsql-9.4/lib/dict_xsyn.so
/usr/pgsql-9.4/lib/euc2004_sjis2004.so
/usr/pgsql-9.4/lib/euc_cn_and_mic.so
/usr/pgsql-9.4/lib/euc_jp_and_sjis.so
/usr/pgsql-9.4/lib/euc_kr_and_mic.so
/usr/pgsql-9.4/lib/euc_tw_and_big5.so
/usr/pgsql-9.4/lib/latin2_and_win1250.so
/usr/pgsql-9.4/lib/latin_and_mic.so
/usr/pgsql-9.4/lib/plpgsql.so
/usr/pgsql-9.4/lib/test_parser.so
/usr/pgsql-9.4/lib/tsearch2.so
/usr/pgsql-9.4/lib/utf8_and_ascii.so
/usr/pgsql-9.4/lib/utf8_and_big5.so
/usr/pgsql-9.4/lib/utf8_and_cyrillic.so
/usr/pgsql-9.4/lib/utf8_and_euc2004.so
/usr/pgsql-9.4/lib/utf8_and_euc_cn.so
/usr/pgsql-9.4/lib/utf8_and_euc_jp.so
/usr/pgsql-9.4/lib/utf8_and_euc_kr.so
/usr/pgsql-9.4/lib/utf8_and_euc_tw.so
/usr/pgsql-9.4/lib/utf8_and_gb18030.so
/usr/pgsql-9.4/lib/utf8_and_gbk.so
/usr/pgsql-9.4/lib/utf8_and_iso8859.so
/usr/pgsql-9.4/lib/utf8_and_iso8859_1.so
/usr/pgsql-9.4/lib/utf8_and_johab.so
/usr/pgsql-9.4/lib/utf8_and_sjis.so
/usr/pgsql-9.4/lib/utf8_and_sjis2004.so
/usr/pgsql-9.4/lib/utf8_and_uhc.so
/usr/pgsql-9.4/lib/utf8_and_win.so
/usr/pgsql-9.4/share
/usr/pgsql-9.4/share/conversion_create.sql
/usr/pgsql-9.4/share/extension
/usr/pgsql-9.4/share/extension/plpgsql--1.0.sql
/usr/pgsql-9.4/share/extension/plpgsql--unpackaged--1.0.sql
/usr/pgsql-9.4/share/extension/plpgsql.control
/usr/pgsql-9.4/share/information_schema.sql
/usr/pgsql-9.4/share/locale/cs/LC_MESSAGES/pg_controldata-9.4.mo
/usr/pgsql-9.4/share/locale/cs/LC_MESSAGES/pg_resetxlog-9.4.mo
/usr/pgsql-9.4/share/locale/cs/LC_MESSAGES/plpgsql-9.4.mo
/usr/pgsql-9.4/share/locale/de/LC_MESSAGES/pg_controldata-9.4.mo
/usr/pgsql-9.4/share/locale/de/LC_MESSAGES/pg_resetxlog-9.4.mo
/usr/pgsql-9.4/share/locale/de/LC_MESSAGES/plpgsql-9.4.mo
/usr/pgsql-9.4/share/locale/de/LC_MESSAGES/postgres-9.4.mo
/usr/pgsql-9.4/share/locale/es/LC_MESSAGES/pg_controldata-9.4.mo
/usr/pgsql-9.4/share/locale/es/LC_MESSAGES/pg_resetxlog-9.4.mo
/usr/pgsql-9.4/share/locale/es/LC_MESSAGES/plpgsql-9.4.mo
/usr/pgsql-9.4/share/locale/es/LC_MESSAGES/postgres-9.4.mo
/usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/pg_controldata-9.4.mo
/usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/pg_resetxlog-9.4.mo
/usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/plpgsql-9.4.mo
/usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/postgres-9.4.mo
/usr/pgsql-9.4/share/locale/id/LC_MESSAGES/postgres-9.4.mo
/usr/pgsql-9.4/share/locale/it/LC_MESSAGES/pg_controldata-9.4.mo
/usr/pgsql-9.4/share/locale/it/LC_MESSAGES/pg_resetxlog-9.4.mo
/usr/pgsql-9.4/share/locale/it/LC_MESSAGES/plpgsql-9.4.mo
/usr/pgsql-9.4/share/locale/it/LC_MESSAGES/postgres-9.4.mo
/usr/pgsql-9.4/share/locale/ja/LC_MESSAGES/pg_controldata-9.4.mo
/usr/pgsql-9.4/share/locale/ja/LC_MESSAGES/pg_resetxlog-9.4.mo
/usr/pgsql-9.4/share/locale/ja/LC_MESSAGES/plpgsql-9.4.mo
/usr/pgsql-9.4/share/locale/ja/LC_MESSAGES/postgres-9.4.mo
/usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/pg_controldata-9.4.mo
/usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/pg_resetxlog-9.4.mo
/usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/plpgsql-9.4.mo
/usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/postgres-9.4.mo
/usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/pg_controldata-9.4.mo
/usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/pg_resetxlog-9.4.mo
/usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/plpgsql-9.4.mo
/usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/postgres-9.4.mo
/usr/pgsql-9.4/share/locale/ro/LC_MESSAGES/plpgsql-9.4.mo
/usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/pg_controldata-9.4.mo
/usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/pg_resetxlog-9.4.mo
/usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/plpgsql-9.4.mo
/usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/postgres-9.4.mo
/usr/pgsql-9.4/share/locale/sv/LC_MESSAGES/pg_controldata-9.4.mo
/usr/pgsql-9.4/share/locale/sv/LC_MESSAGES/pg_resetxlog-9.4.mo
/usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/pg_controldata-9.4.mo
/usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/pg_resetxlog-9.4.mo
/usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/plpgsql-9.4.mo
/usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/postgres-9.4.mo
/usr/pgsql-9.4/share/locale/zh_TW/LC_MESSAGES/plpgsql-9.4.mo
/usr/pgsql-9.4/share/man/man1/initdb.1
/usr/pgsql-9.4/share/man/man1/pg_controldata.1
/usr/pgsql-9.4/share/man/man1/pg_ctl.1
/usr/pgsql-9.4/share/man/man1/pg_resetxlog.1
/usr/pgsql-9.4/share/man/man1/postgres.1
/usr/pgsql-9.4/share/man/man1/postmaster.1
/usr/pgsql-9.4/share/pg_hba.conf.sample
/usr/pgsql-9.4/share/pg_ident.conf.sample
/usr/pgsql-9.4/share/pg_service.conf.sample
/usr/pgsql-9.4/share/postgres.bki
/usr/pgsql-9.4/share/postgres.description
/usr/pgsql-9.4/share/postgres.shdescription
/usr/pgsql-9.4/share/postgresql.conf.sample
/usr/pgsql-9.4/share/psqlrc.sample
/usr/pgsql-9.4/share/recovery.conf.sample
/usr/pgsql-9.4/share/snowball_create.sql
/usr/pgsql-9.4/share/sql_features.txt
/usr/pgsql-9.4/share/system_views.sql
/usr/pgsql-9.4/share/timezonesets/Africa.txt
/usr/pgsql-9.4/share/timezonesets/America.txt
/usr/pgsql-9.4/share/timezonesets/Antarctica.txt
/usr/pgsql-9.4/share/timezonesets/Asia.txt
/usr/pgsql-9.4/share/timezonesets/Atlantic.txt
/usr/pgsql-9.4/share/timezonesets/Australia
/usr/pgsql-9.4/share/timezonesets/Australia.txt
/usr/pgsql-9.4/share/timezonesets/Default
/usr/pgsql-9.4/share/timezonesets/Etc.txt
/usr/pgsql-9.4/share/timezonesets/Europe.txt
/usr/pgsql-9.4/share/timezonesets/India
/usr/pgsql-9.4/share/timezonesets/Indian.txt
/usr/pgsql-9.4/share/timezonesets/Pacific.txt
/usr/pgsql-9.4/share/tsearch_data/danish.stop
/usr/pgsql-9.4/share/tsearch_data/dutch.stop
/usr/pgsql-9.4/share/tsearch_data/english.stop
/usr/pgsql-9.4/share/tsearch_data/finnish.stop
/usr/pgsql-9.4/share/tsearch_data/french.stop
/usr/pgsql-9.4/share/tsearch_data/german.stop
/usr/pgsql-9.4/share/tsearch_data/hungarian.stop
/usr/pgsql-9.4/share/tsearch_data/hunspell_sample.affix
/usr/pgsql-9.4/share/tsearch_data/ispell_sample.affix
/usr/pgsql-9.4/share/tsearch_data/ispell_sample.dict
/usr/pgsql-9.4/share/tsearch_data/italian.stop
/usr/pgsql-9.4/share/tsearch_data/norwegian.stop
/usr/pgsql-9.4/share/tsearch_data/portuguese.stop
/usr/pgsql-9.4/share/tsearch_data/russian.stop
/usr/pgsql-9.4/share/tsearch_data/spanish.stop
/usr/pgsql-9.4/share/tsearch_data/swedish.stop
/usr/pgsql-9.4/share/tsearch_data/synonym_sample.syn
/usr/pgsql-9.4/share/tsearch_data/thesaurus_sample.ths
/usr/pgsql-9.4/share/tsearch_data/turkish.stop
/usr/pgsql-9.4/share/tsearch_data/unaccent.rules
/usr/pgsql-9.4/share/tsearch_data/xsyn_sample.rules
/var/lib/pgsql
/var/lib/pgsql/9.4
/var/lib/pgsql/9.4/backups
/var/lib/pgsql/9.4/data
/var/run/postgresql
[root@backup soft_bak]# rpm -qpl postgresql94-libs-9.4.5-1PGDG.rhel7.x86_64.rpm
/usr/pgsql-9.4/lib/libecpg.so
/usr/pgsql-9.4/lib/libecpg.so.6
/usr/pgsql-9.4/lib/libecpg.so.6.6
/usr/pgsql-9.4/lib/libecpg_compat.so.3
/usr/pgsql-9.4/lib/libecpg_compat.so.3.6
/usr/pgsql-9.4/lib/libpgtypes.so.3
/usr/pgsql-9.4/lib/libpgtypes.so.3.5
/usr/pgsql-9.4/lib/libpq.so.5
/usr/pgsql-9.4/lib/libpq.so.5.7
/usr/pgsql-9.4/lib/libpqwalreceiver.so
/usr/pgsql-9.4/share/locale/cs/LC_MESSAGES/libpq5-9.4.mo
/usr/pgsql-9.4/share/locale/de/LC_MESSAGES/libpq5-9.4.mo
/usr/pgsql-9.4/share/locale/es/LC_MESSAGES/libpq5-9.4.mo
/usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/libpq5-9.4.mo
/usr/pgsql-9.4/share/locale/it/LC_MESSAGES/libpq5-9.4.mo
/usr/pgsql-9.4/share/locale/ja/LC_MESSAGES/libpq5-9.4.mo
/usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/libpq5-9.4.mo
/usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/libpq5-9.4.mo
/usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/libpq5-9.4.mo
/usr/pgsql-9.4/share/locale/tr/LC_MESSAGES/libpq5-9.4.mo
/usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/libpq5-9.4.mo
/usr/pgsql-9.4/share/locale/zh_TW/LC_MESSAGES/libpq5-9.4.mo
/usr/pgsql-9.4/share/postgresql-9.4-libs.conf
查看包所依赖的服务或者组件的命令
[root@backup soft_bak]# rpm -qp postgresql94-9.4.5-1PGDG.rhel7.x86_64.rpm -requires
/bin/sh
/bin/sh
/sbin/ldconfig
/usr/sbin/update-alternatives
/usr/sbin/update-alternatives
libc.so.6()(64bit)
libc.so.6(GLIBC_2.11)(64bit)
libc.so.6(GLIBC_2.14)(64bit)
libc.so.6(GLIBC_2.15)(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.3)(64bit)
libc.so.6(GLIBC_2.3.3)(64bit)
libc.so.6(GLIBC_2.3.4)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libpq.so.5()(64bit)
libreadline.so.6()(64bit)
libssl.so.10()(64bit)
libssl.so.10(libssl.so.10)(64bit)
libz.so.1()(64bit)
postgresql94-libs = 9.4.5-1PGDG.rhel7
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rtld(GNU_HASH)
rpmlib(PayloadIsXz) <= 5.2-1
[root@backup soft_bak]# rpm -qp postgresql94-server-9.4.5-1PGDG.rhel7.x86_64.rpm -requires
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/bin/sh
/usr/sbin/useradd
config(postgresql94-server) = 9.4.5-1PGDG.rhel7
glibc
glibc
libc.so.6()(64bit)
libc.so.6(GLIBC_2.11)(64bit)
libc.so.6(GLIBC_2.14)(64bit)
libc.so.6(GLIBC_2.15)(64bit)
libc.so.6(GLIBC_2.16)(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.3)(64bit)
libc.so.6(GLIBC_2.3.3)(64bit)
libc.so.6(GLIBC_2.3.4)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libc.so.6(GLIBC_2.6)(64bit)
libc.so.6(GLIBC_2.7)(64bit)
libcrypto.so.10()(64bit)
libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit)
libcrypto.so.10(libcrypto.so.10)(64bit)
libdl.so.2()(64bit)
libdl.so.2(GLIBC_2.2.5)(64bit)
libgssapi_krb5.so.2()(64bit)
libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit)
libldap-2.4.so.2()(64bit)
libm.so.6()(64bit)
libm.so.6(GLIBC_2.2.5)(64bit)
libpam.so.0()(64bit)
libpam.so.0(LIBPAM_1.0)(64bit)
libpq.so.5()(64bit)
librt.so.1()(64bit)
librt.so.1(GLIBC_2.2.5)(64bit)
libssl.so.10()(64bit)
libssl.so.10(libssl.so.10)(64bit)
libxml2.so.2()(64bit)
libxml2.so.2(LIBXML2_2.4.30)(64bit)
libxml2.so.2(LIBXML2_2.6.0)(64bit)
postgresql94 = 9.4.5-1PGDG.rhel7
postgresql94(x86-64) = 9.4.5-1PGDG.rhel7
postgresql94-libs(x86-64) = 9.4.5-1PGDG.rhel7
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rtld(GNU_HASH)
systemd-units
systemd-units
systemd-units
rpmlib(PayloadIsXz) <= 5.2-1
[root@backup soft_bak]# rpm -qp postgresql94-libs-9.4.5-1PGDG.rhel7.x86_64.rpm -requires
/bin/sh
/bin/sh
config(postgresql94-libs) = 9.4.5-1PGDG.rhel7
libc.so.6()(64bit)
libc.so.6(GLIBC_2.14)(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.3)(64bit)
libc.so.6(GLIBC_2.3.4)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libcrypto.so.10()(64bit)
libcrypto.so.10(libcrypto.so.10)(64bit)
libecpg.so.6()(64bit)
libgssapi_krb5.so.2()(64bit)
libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit)
libldap_r-2.4.so.2()(64bit)
libm.so.6()(64bit)
libm.so.6(GLIBC_2.2.5)(64bit)
libpgtypes.so.3()(64bit)
libpq.so.5()(64bit)
libpthread.so.0()(64bit)
libpthread.so.0(GLIBC_2.2.5)(64bit)
libssl.so.10()(64bit)
libssl.so.10(libssl.so.10)(64bit)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rtld(GNU_HASH)
rpmlib(PayloadIsXz) <= 5.2-1
rpm实现
常用的命令执行点
pre install :在安装之前
post install :在安装之后
pre uninstall :在卸载之前
post uninstall :在卸载之后
[root@backup soft_bak]# rpm -qp postgresql94-9.4.5-1PGDG.rhel7.x86_64.rpm --scripts
postinstall scriptlet (using /bin/sh):
/usr/sbin/update-alternatives --install /usr/bin/psql pgsql-psql /usr/pgsql-9.4/bin/psql 940
/usr/sbin/update-alternatives --install /usr/bin/clusterdb pgsql-clusterdb /usr/pgsql-9.4/bin/clusterdb 940
/usr/sbin/update-alternatives --install /usr/bin/createdb pgsql-createdb /usr/pgsql-9.4/bin/createdb 940
/usr/sbin/update-alternatives --install /usr/bin/createlang pgsql-createlang /usr/pgsql-9.4/bin/createlang 940
/usr/sbin/update-alternatives --install /usr/bin/createuser pgsql-createuser /usr/pgsql-9.4/bin/createuser 940
/usr/sbin/update-alternatives --install /usr/bin/dropdb pgsql-dropdb /usr/pgsql-9.4/bin/dropdb 940
/usr/sbin/update-alternatives --install /usr/bin/droplang pgsql-droplang /usr/pgsql-9.4/bin/droplang 940
/usr/sbin/update-alternatives --install /usr/bin/dropuser pgsql-dropuser /usr/pgsql-9.4/bin/dropuser 940
/usr/sbin/update-alternatives --install /usr/bin/pg_basebackup pgsql-pg_basebackup /usr/pgsql-9.4/bin/pg_basebackup 940
/usr/sbin/update-alternatives --install /usr/bin/pg_dump pgsql-pg_dump /usr/pgsql-9.4/bin/pg_dump 940
/usr/sbin/update-alternatives --install /usr/bin/pg_dumpall pgsql-pg_dumpall /usr/pgsql-9.4/bin/pg_dumpall 940
/usr/sbin/update-alternatives --install /usr/bin/pg_restore pgsql-pg_restore /usr/pgsql-9.4/bin/pg_restore 940
/usr/sbin/update-alternatives --install /usr/bin/reindexdb pgsql-reindexdb /usr/pgsql-9.4/bin/reindexdb 940
/usr/sbin/update-alternatives --install /usr/bin/vacuumdb pgsql-vacuumdb /usr/pgsql-9.4/bin/vacuumdb 940
/usr/sbin/update-alternatives --install /usr/share/man/man1/clusterdb.1 pgsql-clusterdbman /usr/pgsql-9.4/share/man/man1/clusterdb.1 940
/usr/sbin/update-alternatives --install /usr/share/man/man1/createdb.1 pgsql-createdbman /usr/pgsql-9.4/share/man/man1/createdb.1 940
/usr/sbin/update-alternatives --install /usr/share/man/man1/createlang.1 pgsql-createlangman /usr/pgsql-9.4/share/man/man1/createlang.1 940
/usr/sbin/update-alternatives --install /usr/share/man/man1/createuser.1 pgsql-createuserman /usr/pgsql-9.4/share/man/man1/createuser.1 940
/usr/sbin/update-alternatives --install /usr/share/man/man1/dropdb.1 pgsql-dropdbman /usr/pgsql-9.4/share/man/man1/dropdb.1 940
/usr/sbin/update-alternatives --install /usr/share/man/man1/droplang.1 pgsql-droplangman /usr/pgsql-9.4/share/man/man1/droplang.1 940
/usr/sbin/update-alternatives --install /usr/share/man/man1/dropuser.1 pgsql-dropuserman /usr/pgsql-9.4/share/man/man1/dropuser.1 940
/usr/sbin/update-alternatives --install /usr/share/man/man1/pg_basebackup.1 pgsql-pg_basebackupman /usr/pgsql-9.4/share/man/man1/pg_basebackup.1 940
/usr/sbin/update-alternatives --install /usr/share/man/man1/pg_dump.1 pgsql-pg_dumpman /usr/pgsql-9.4/share/man/man1/pg_dump.1 940
/usr/sbin/update-alternatives --install /usr/share/man/man1/pg_dumpall.1 pgsql-pg_dumpallman /usr/pgsql-9.4/share/man/man1/pg_dumpall.1 940
/usr/sbin/update-alternatives --install /usr/share/man/man1/pg_restore.1 pgsql-pg_restoreman /usr/pgsql-9.4/share/man/man1/pg_restore.1 940
/usr/sbin/update-alternatives --install /usr/share/man/man1/psql.1 pgsql-psqlman /usr/pgsql-9.4/share/man/man1/psql.1 940
/usr/sbin/update-alternatives --install /usr/share/man/man1/reindexdb.1 pgsql-reindexdbman /usr/pgsql-9.4/share/man/man1/reindexdb.1 940
/usr/sbin/update-alternatives --install /usr/share/man/man1/vacuumdb.1 pgsql-vacuumdbman /usr/pgsql-9.4/share/man/man1/vacuumdb.1 940
postuninstall scriptlet (using /bin/sh):
if [ "$1" -eq 0 ]
then
# Only remove these links if the package is completely removed from the system (vs.just being upgraded)
/usr/sbin/update-alternatives --remove pgsql-psql /usr/pgsql-9.4/bin/psql
/usr/sbin/update-alternatives --remove pgsql-clusterdb /usr/pgsql-9.4/bin/clusterdb
/usr/sbin/update-alternatives --remove pgsql-clusterdbman /usr/pgsql-9.4/share/man/man1/clusterdb.1
/usr/sbin/update-alternatives --remove pgsql-createdb /usr/pgsql-9.4/bin/createdb
/usr/sbin/update-alternatives --remove pgsql-createdbman /usr/pgsql-9.4/share/man/man1/createdb.1
/usr/sbin/update-alternatives --remove pgsql-createlang /usr/pgsql-9.4/bin/createlang
/usr/sbin/update-alternatives --remove pgsql-createlangman /usr/pgsql-9.4/share/man/man1/createlang.1
/usr/sbin/update-alternatives --remove pgsql-createuser /usr/pgsql-9.4/bin/createuser
/usr/sbin/update-alternatives --remove pgsql-createuserman /usr/pgsql-9.4/share/man/man1/createuser.1
/usr/sbin/update-alternatives --remove pgsql-dropdb /usr/pgsql-9.4/bin/dropdb
/usr/sbin/update-alternatives --remove pgsql-dropdbman /usr/pgsql-9.4/share/man/man1/dropdb.1
/usr/sbin/update-alternatives --remove pgsql-droplang /usr/pgsql-9.4/bin/droplang
/usr/sbin/update-alternatives --remove pgsql-droplangman /usr/pgsql-9.4/share/man/man1/droplang.1
/usr/sbin/update-alternatives --remove pgsql-dropuser /usr/pgsql-9.4/bin/dropuser
/usr/sbin/update-alternatives --remove pgsql-dropuserman /usr/pgsql-9.4/share/man/man1/dropuser.1
/usr/sbin/update-alternatives --remove pgsql-pg_basebackup /usr/pgsql-9.4/bin/pg_basebackup
/usr/sbin/update-alternatives --remove pgsql-pg_dump /usr/pgsql-9.4/bin/pg_dump
/usr/sbin/update-alternatives --remove pgsql-pg_dumpall /usr/pgsql-9.4/bin/pg_dumpall
/usr/sbin/update-alternatives --remove pgsql-pg_dumpallman /usr/pgsql-9.4/share/man/man1/pg_dumpall.1
/usr/sbin/update-alternatives --remove pgsql-pg_basebackupman /usr/pgsql-9.4/share/man/man1/pg_basebackup.1
/usr/sbin/update-alternatives --remove pgsql-pg_dumpman /usr/pgsql-9.4/share/man/man1/pg_dump.1
/usr/sbin/update-alternatives --remove pgsql-pg_restore /usr/pgsql-9.4/bin/pg_restore
/usr/sbin/update-alternatives --remove pgsql-pg_restoreman /usr/pgsql-9.4/share/man/man1/pg_restore.1
/usr/sbin/update-alternatives --remove pgsql-psqlman /usr/pgsql-9.4/share/man/man1/psql.1
/usr/sbin/update-alternatives --remove pgsql-reindexdb /usr/pgsql-9.4/bin/reindexdb
/usr/sbin/update-alternatives --remove pgsql-reindexdbman /usr/pgsql-9.4/share/man/man1/reindexdb.1
/usr/sbin/update-alternatives --remove pgsql-vacuumdb /usr/pgsql-9.4/bin/vacuumdb
/usr/sbin/update-alternatives --remove pgsql-vacuumdbman /usr/pgsql-9.4/share/man/man1/vacuumdb.1
fi
[root@backup soft_bak]# rpm -qp postgresql94-server-9.4.5-1PGDG.rhel7.x86_64.rpm --scripts
preinstall scriptlet (using /bin/sh):
groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
useradd -M -n -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
-c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || :
postinstall scriptlet (using /bin/sh):
/sbin/ldconfig
if [ $1 -eq 1 ] ; then
# Initial installation
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
# postgres' .bash_profile.
# We now don't install .bash_profile as we used to in pre 9.0. Instead, use cat,
# so that package manager will be happy during upgrade to new major version.
echo "[ -f /etc/profile ] && source /etc/profile
PGDATA=/var/lib/pgsql/9.4/data
export PGDATA
# If you want to customize your settings,
# Use the file below. This is not overridden
# by the RPMS.
[ -f /var/lib/pgsql/.pgsql_profile ] && source /var/lib/pgsql/.pgsql_profile" > /var/lib/pgsql/.bash_profile
chown postgres: /var/lib/pgsql/.bash_profile
chmod 700 /var/lib/pgsql/.bash_profile
preuninstall scriptlet (using /bin/sh):
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade
/bin/systemctl --no-reload disable postgresql-9.4.service >/dev/null 2>&1 || :
/bin/systemctl stop postgresql-9.4.service >/dev/null 2>&1 || :
fi
postuninstall scriptlet (using /bin/sh):
/sbin/ldconfig
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
/bin/systemctl try-restart postgresql-9.4.service >/dev/null 2>&1 || :
fi
[root@backup soft_bak]# rpm -qp postgresql94-libs-9.4.5-1PGDG.rhel7.x86_64.rpm --scripts
postinstall scriptlet (using /bin/sh):
/usr/sbin/update-alternatives --install /etc/ld.so.conf.d/postgresql-pgdg-libs.conf pgsql-ld-conf /usr/pgsql-9.4/share/postgresql-9.4-libs.conf 940
/sbin/ldconfig
# Drop alternatives entries for common binaries and man files
postuninstall scriptlet (using /bin/sh):
if [ "$1" -eq 0 ]
then
/usr/sbin/update-alternatives --remove pgsql-ld-conf /usr/pgsql-9.4/share/postgresql-9.4-libs.conf
/sbin/ldconfig
fi
查看RPM包的信息
[root@backup soft_bak]# rpm -qpi postgresql94-server-9.4.5-1PGDG.rhel7.x86_64.rpm
Name : postgresql94-server Relocations: (not relocatable)
Version : 9.4.5 Vendor: (none)
Release : 1PGDG.rhel7 Build Date: Wed 07 Oct 2015 08:56:22 AM CST
Install Date : (not installed) Build Host: koji-centos7-x86-64-pg94
Group : Applications/Databases Source RPM: postgresql94-9.4.5-1PGDG.rhel7.src.rpm
Size : 17327989 License: PostgreSQL
Signature : DSA/SHA1, Wed 07 Oct 2015 08:59:28 AM CST, Key ID 1f16d2e1442df0f8
URL : http://www.postgresql.org/
Summary : The programs needed to create and run a PostgreSQL server
Description :
PostgreSQL is an advanced Object-Relational database management system (DBMS).
The postgresql94-server package contains the programs needed to create
and run a PostgreSQL server, which will in turn allow you to create
and maintain PostgreSQL databases.
[root@backup soft_bak]# rpm -qpi postgresql94-9.4.5-1PGDG.rhel7.x86_64.rpm
Name : postgresql94 Relocations: (not relocatable)
Version : 9.4.5 Vendor: (none)
Release : 1PGDG.rhel7 Build Date: Wed 07 Oct 2015 08:56:22 AM CST
Install Date: (not installed) Build Host: koji-centos7-x86-64-pg94
Group : Applications/Databases Source RPM: postgresql94-9.4.5-1PGDG.rhel7.src.rpm
Size : 5673483 License: PostgreSQL
Signature : DSA/SHA1, Wed 07 Oct 2015 08:59:28 AM CST, Key ID 1f16d2e1442df0f8
URL : http://www.postgresql.org/
Summary : PostgreSQL client programs and libraries
Description :
PostgreSQL is an advanced Object-Relational database management system (DBMS).
The base postgresql package contains the client programs that you'll need to
access a PostgreSQL DBMS server, as well as HTML documentation for the whole
system. These client programs can be located on the same machine as the
PostgreSQL server, or on a remote machine that accesses a PostgreSQL server
over a network connection. The PostgreSQL server can be found in the
postgresql94-server sub-package.
If you want to manipulate a PostgreSQL database on a local or remote PostgreSQL
server, you need this package. You also need to install this package
if you're installing the postgresql94-server package.
[root@backup soft_bak]# rpm -qpi postgresql94-libs-9.4.5-1PGDG.rhel7.x86_64.rpm
Name : postgresql94-libs Relocations: (not relocatable)
Version : 9.4.5 Vendor: (none)
Release : 1PGDG.rhel7 Build Date: Wed 07 Oct 2015 08:56:22 AM CST
Install Date: (not installed) Build Host: koji-centos7-x86-64-pg94
Group : Applications/Databases Source RPM: postgresql94-9.4.5-1PGDG.rhel7.src.rpm
Size : 670712 License: PostgreSQL
Signature : DSA/SHA1, Wed 07 Oct 2015 08:59:28 AM CST, Key ID 1f16d2e1442df0f8
URL : http://www.postgresql.org/
Summary : The shared libraries required for any PostgreSQL clients
Description :
The postgresql94-libs package provides the essential shared libraries for any
PostgreSQL client program or interface. You will need to install this package
to use any other PostgreSQL package or any clients that need to connect to a
PostgreSQL server.
[root@backup soft_bak]#
[root@backup soft_bak]# rpm -qp postgresql94-libs-9.4.5-1PGDG.rhel7.x86_64.rpm --filesbypkg
postgresql94-libs /usr/pgsql-9.4/lib/libecpg.so
postgresql94-libs /usr/pgsql-9.4/lib/libecpg.so.6
postgresql94-libs /usr/pgsql-9.4/lib/libecpg.so.6.6
postgresql94-libs /usr/pgsql-9.4/lib/libecpg_compat.so.3
postgresql94-libs /usr/pgsql-9.4/lib/libecpg_compat.so.3.6
postgresql94-libs /usr/pgsql-9.4/lib/libpgtypes.so.3
postgresql94-libs /usr/pgsql-9.4/lib/libpgtypes.so.3.5
postgresql94-libs /usr/pgsql-9.4/lib/libpq.so.5
postgresql94-libs /usr/pgsql-9.4/lib/libpq.so.5.7
postgresql94-libs /usr/pgsql-9.4/lib/libpqwalreceiver.so
postgresql94-libs /usr/pgsql-9.4/share/locale/cs/LC_MESSAGES/libpq5-9.4.mo
postgresql94-libs /usr/pgsql-9.4/share/locale/de/LC_MESSAGES/libpq5-9.4.mo
postgresql94-libs /usr/pgsql-9.4/share/locale/es/LC_MESSAGES/libpq5-9.4.mo
postgresql94-libs /usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/libpq5-9.4.mo
postgresql94-libs /usr/pgsql-9.4/share/locale/it/LC_MESSAGES/libpq5-9.4.mo
postgresql94-libs /usr/pgsql-9.4/share/locale/ja/LC_MESSAGES/libpq5-9.4.mo
postgresql94-libs /usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/libpq5-9.4.mo
postgresql94-libs /usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/libpq5-9.4.mo
postgresql94-libs /usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/libpq5-9.4.mo
postgresql94-libs /usr/pgsql-9.4/share/locale/tr/LC_MESSAGES/libpq5-9.4.mo
postgresql94-libs /usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/libpq5-9.4.mo
postgresql94-libs /usr/pgsql-9.4/share/locale/zh_TW/LC_MESSAGES/libpq5-9.4.mo
postgresql94-libs /usr/pgsql-9.4/share/postgresql-9.4-libs.conf
[root@backup soft_bak]# rpm -qp postgresql94-9.4.5-1PGDG.rhel7.x86_64.rpm --filesbypkg
postgresql94 /usr/pgsql-9.4/bin/clusterdb
postgresql94 /usr/pgsql-9.4/bin/createdb
postgresql94 /usr/pgsql-9.4/bin/createlang
postgresql94 /usr/pgsql-9.4/bin/createuser
postgresql94 /usr/pgsql-9.4/bin/dropdb
postgresql94 /usr/pgsql-9.4/bin/droplang
postgresql94 /usr/pgsql-9.4/bin/dropuser
postgresql94 /usr/pgsql-9.4/bin/pg_basebackup
postgresql94 /usr/pgsql-9.4/bin/pg_config
postgresql94 /usr/pgsql-9.4/bin/pg_dump
postgresql94 /usr/pgsql-9.4/bin/pg_dumpall
postgresql94 /usr/pgsql-9.4/bin/pg_isready
postgresql94 /usr/pgsql-9.4/bin/pg_receivexlog
postgresql94 /usr/pgsql-9.4/bin/pg_restore
postgresql94 /usr/pgsql-9.4/bin/pg_test_fsync
postgresql94 /usr/pgsql-9.4/bin/psql
postgresql94 /usr/pgsql-9.4/bin/reindexdb
postgresql94 /usr/pgsql-9.4/bin/vacuumdb
postgresql94 /usr/pgsql-9.4/share/locale/cs/LC_MESSAGES/initdb-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/cs/LC_MESSAGES/pg_ctl-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/cs/LC_MESSAGES/pg_dump-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/cs/LC_MESSAGES/pgscripts-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/cs/LC_MESSAGES/psql-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/de/LC_MESSAGES/initdb-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/de/LC_MESSAGES/pg_basebackup-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/de/LC_MESSAGES/pg_ctl-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/de/LC_MESSAGES/pg_dump-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/de/LC_MESSAGES/pgscripts-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/de/LC_MESSAGES/psql-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/es/LC_MESSAGES/initdb-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/es/LC_MESSAGES/pg_basebackup-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/es/LC_MESSAGES/pg_ctl-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/es/LC_MESSAGES/pg_dump-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/es/LC_MESSAGES/pgscripts-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/es/LC_MESSAGES/psql-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/initdb-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/pg_basebackup-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/pg_ctl-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/pg_dump-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/pgscripts-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/psql-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/it/LC_MESSAGES/initdb-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/it/LC_MESSAGES/pg_basebackup-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/it/LC_MESSAGES/pg_ctl-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/it/LC_MESSAGES/pg_dump-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/it/LC_MESSAGES/pgscripts-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/it/LC_MESSAGES/psql-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/ja/LC_MESSAGES/initdb-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/ja/LC_MESSAGES/pg_ctl-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/ja/LC_MESSAGES/pg_dump-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/ja/LC_MESSAGES/pgscripts-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/ja/LC_MESSAGES/psql-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/initdb-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/pg_basebackup-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/pg_ctl-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/pg_dump-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/pgscripts-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/psql-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/initdb-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/pg_basebackup-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/pg_ctl-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/pg_dump-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/pgscripts-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/psql-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/initdb-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/pg_basebackup-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/pg_ctl-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/pg_dump-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/pgscripts-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/psql-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/sv/LC_MESSAGES/initdb-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/sv/LC_MESSAGES/pg_ctl-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/sv/LC_MESSAGES/pgscripts-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/initdb-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/pg_basebackup-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/pg_ctl-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/pg_dump-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/pgscripts-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/psql-9.4.mo
postgresql94 /usr/pgsql-9.4/share/locale/zh_TW/LC_MESSAGES/psql-9.4.mo
postgresql94 /usr/pgsql-9.4/share/man/man1/clusterdb.1
postgresql94 /usr/pgsql-9.4/share/man/man1/createdb.1
postgresql94 /usr/pgsql-9.4/share/man/man1/createlang.1
postgresql94 /usr/pgsql-9.4/share/man/man1/createuser.1
postgresql94 /usr/pgsql-9.4/share/man/man1/dropdb.1
postgresql94 /usr/pgsql-9.4/share/man/man1/droplang.1
postgresql94 /usr/pgsql-9.4/share/man/man1/dropuser.1
postgresql94 /usr/pgsql-9.4/share/man/man1/pg_basebackup.1
postgresql94 /usr/pgsql-9.4/share/man/man1/pg_config.1
postgresql94 /usr/pgsql-9.4/share/man/man1/pg_dump.1
postgresql94 /usr/pgsql-9.4/share/man/man1/pg_dumpall.1
postgresql94 /usr/pgsql-9.4/share/man/man1/pg_isready.1
postgresql94 /usr/pgsql-9.4/share/man/man1/pg_receivexlog.1
postgresql94 /usr/pgsql-9.4/share/man/man1/pg_restore.1
postgresql94 /usr/pgsql-9.4/share/man/man1/psql.1
postgresql94 /usr/pgsql-9.4/share/man/man1/reindexdb.1
postgresql94 /usr/pgsql-9.4/share/man/man1/vacuumdb.1
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_connect.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_copytuple.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_cursor_close.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_cursor_fetch.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_cursor_find.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_cursor_move.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_cursor_open.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_cursor_open_with_args.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_cursor_open_with_paramlist.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_exec.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_execp.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_execute.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_execute_plan.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_execute_plan_with_paramlist.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_execute_with_args.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_finish.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_fname.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_fnumber.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_freeplan.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_freetuple.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_freetuptable.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_getargcount.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_getargtypeid.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_getbinval.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_getnspname.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_getrelname.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_gettype.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_gettypeid.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_getvalue.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_is_cursor_plan.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_keepplan.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_modifytuple.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_palloc.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_pfree.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_pop.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_prepare.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_prepare_cursor.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_prepare_params.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_push.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_repalloc.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_returntuple.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_saveplan.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_scroll_cursor_fetch.3
postgresql94 /usr/pgsql-9.4/share/man/man3/SPI_scroll_cursor_move.3
postgresql94 /usr/pgsql-9.4/share/man/man3/dblink.3
postgresql94 /usr/pgsql-9.4/share/man/man3/dblink_build_sql_delete.3
postgresql94 /usr/pgsql-9.4/share/man/man3/dblink_build_sql_insert.3
postgresql94 /usr/pgsql-9.4/share/man/man3/dblink_build_sql_update.3
postgresql94 /usr/pgsql-9.4/share/man/man3/dblink_cancel_query.3
postgresql94 /usr/pgsql-9.4/share/man/man3/dblink_close.3
postgresql94 /usr/pgsql-9.4/share/man/man3/dblink_connect.3
postgresql94 /usr/pgsql-9.4/share/man/man3/dblink_connect_u.3
postgresql94 /usr/pgsql-9.4/share/man/man3/dblink_disconnect.3
postgresql94 /usr/pgsql-9.4/share/man/man3/dblink_error_message.3
postgresql94 /usr/pgsql-9.4/share/man/man3/dblink_exec.3
postgresql94 /usr/pgsql-9.4/share/man/man3/dblink_fetch.3
postgresql94 /usr/pgsql-9.4/share/man/man3/dblink_get_connections.3
postgresql94 /usr/pgsql-9.4/share/man/man3/dblink_get_notify.3
postgresql94 /usr/pgsql-9.4/share/man/man3/dblink_get_pkey.3
postgresql94 /usr/pgsql-9.4/share/man/man3/dblink_get_result.3
postgresql94 /usr/pgsql-9.4/share/man/man3/dblink_is_busy.3
postgresql94 /usr/pgsql-9.4/share/man/man3/dblink_open.3
postgresql94 /usr/pgsql-9.4/share/man/man3/dblink_send_query.3
postgresql94 /usr/pgsql-9.4/share/man/man7/ABORT.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_AGGREGATE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_COLLATION.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_CONVERSION.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_DATABASE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_DEFAULT_PRIVILEGES.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_DOMAIN.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_EVENT_TRIGGER.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_EXTENSION.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_FOREIGN_DATA_WRAPPER.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_FOREIGN_TABLE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_FUNCTION.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_GROUP.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_INDEX.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_LANGUAGE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_LARGE_OBJECT.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_MATERIALIZED_VIEW.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_OPERATOR.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_OPERATOR_CLASS.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_OPERATOR_FAMILY.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_ROLE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_RULE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_SCHEMA.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_SEQUENCE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_SERVER.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_SYSTEM.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_TABLE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_TABLESPACE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_TEXT_SEARCH_CONFIGURATION.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_TEXT_SEARCH_DICTIONARY.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_TEXT_SEARCH_PARSER.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_TEXT_SEARCH_TEMPLATE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_TRIGGER.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_TYPE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_USER.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_USER_MAPPING.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ALTER_VIEW.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ANALYZE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/BEGIN.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CHECKPOINT.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CLOSE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CLUSTER.7
postgresql94 /usr/pgsql-9.4/share/man/man7/COMMENT.7
postgresql94 /usr/pgsql-9.4/share/man/man7/COMMIT.7
postgresql94 /usr/pgsql-9.4/share/man/man7/COMMIT_PREPARED.7
postgresql94 /usr/pgsql-9.4/share/man/man7/COPY.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_AGGREGATE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_CAST.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_COLLATION.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_CONVERSION.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_DATABASE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_DOMAIN.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_EVENT_TRIGGER.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_EXTENSION.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_FOREIGN_DATA_WRAPPER.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_FOREIGN_TABLE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_FUNCTION.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_GROUP.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_INDEX.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_LANGUAGE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_MATERIALIZED_VIEW.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_OPERATOR.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_OPERATOR_CLASS.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_OPERATOR_FAMILY.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_ROLE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_RULE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_SCHEMA.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_SEQUENCE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_SERVER.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_TABLE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_TABLESPACE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_TABLE_AS.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_TEXT_SEARCH_CONFIGURATION.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_TEXT_SEARCH_DICTIONARY.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_TEXT_SEARCH_PARSER.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_TEXT_SEARCH_TEMPLATE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_TRIGGER.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_TYPE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_USER.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_USER_MAPPING.7
postgresql94 /usr/pgsql-9.4/share/man/man7/CREATE_VIEW.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DEALLOCATE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DECLARE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DELETE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DISCARD.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DO.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_AGGREGATE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_CAST.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_COLLATION.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_CONVERSION.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_DATABASE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_DOMAIN.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_EVENT_TRIGGER.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_EXTENSION.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_FOREIGN_DATA_WRAPPER.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_FOREIGN_TABLE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_FUNCTION.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_GROUP.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_INDEX.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_LANGUAGE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_MATERIALIZED_VIEW.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_OPERATOR.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_OPERATOR_CLASS.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_OPERATOR_FAMILY.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_OWNED.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_ROLE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_RULE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_SCHEMA.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_SEQUENCE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_SERVER.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_TABLE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_TABLESPACE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_TEXT_SEARCH_CONFIGURATION.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_TEXT_SEARCH_DICTIONARY.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_TEXT_SEARCH_PARSER.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_TEXT_SEARCH_TEMPLATE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_TRIGGER.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_TYPE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_USER.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_USER_MAPPING.7
postgresql94 /usr/pgsql-9.4/share/man/man7/DROP_VIEW.7
postgresql94 /usr/pgsql-9.4/share/man/man7/END.7
postgresql94 /usr/pgsql-9.4/share/man/man7/EXECUTE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/EXPLAIN.7
postgresql94 /usr/pgsql-9.4/share/man/man7/FETCH.7
postgresql94 /usr/pgsql-9.4/share/man/man7/GRANT.7
postgresql94 /usr/pgsql-9.4/share/man/man7/INSERT.7
postgresql94 /usr/pgsql-9.4/share/man/man7/LISTEN.7
postgresql94 /usr/pgsql-9.4/share/man/man7/LOAD.7
postgresql94 /usr/pgsql-9.4/share/man/man7/LOCK.7
postgresql94 /usr/pgsql-9.4/share/man/man7/MOVE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/NOTIFY.7
postgresql94 /usr/pgsql-9.4/share/man/man7/PREPARE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/PREPARE_TRANSACTION.7
postgresql94 /usr/pgsql-9.4/share/man/man7/REASSIGN_OWNED.7
postgresql94 /usr/pgsql-9.4/share/man/man7/REFRESH_MATERIALIZED_VIEW.7
postgresql94 /usr/pgsql-9.4/share/man/man7/REINDEX.7
postgresql94 /usr/pgsql-9.4/share/man/man7/RELEASE_SAVEPOINT.7
postgresql94 /usr/pgsql-9.4/share/man/man7/RESET.7
postgresql94 /usr/pgsql-9.4/share/man/man7/REVOKE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ROLLBACK.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ROLLBACK_PREPARED.7
postgresql94 /usr/pgsql-9.4/share/man/man7/ROLLBACK_TO_SAVEPOINT.7
postgresql94 /usr/pgsql-9.4/share/man/man7/SAVEPOINT.7
postgresql94 /usr/pgsql-9.4/share/man/man7/SECURITY_LABEL.7
postgresql94 /usr/pgsql-9.4/share/man/man7/SELECT.7
postgresql94 /usr/pgsql-9.4/share/man/man7/SELECT_INTO.7
postgresql94 /usr/pgsql-9.4/share/man/man7/SET.7
postgresql94 /usr/pgsql-9.4/share/man/man7/SET_CONSTRAINTS.7
postgresql94 /usr/pgsql-9.4/share/man/man7/SET_ROLE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/SET_SESSION_AUTHORIZATION.7
postgresql94 /usr/pgsql-9.4/share/man/man7/SET_TRANSACTION.7
postgresql94 /usr/pgsql-9.4/share/man/man7/SHOW.7
postgresql94 /usr/pgsql-9.4/share/man/man7/START_TRANSACTION.7
postgresql94 /usr/pgsql-9.4/share/man/man7/TABLE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/TRUNCATE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/UNLISTEN.7
postgresql94 /usr/pgsql-9.4/share/man/man7/UPDATE.7
postgresql94 /usr/pgsql-9.4/share/man/man7/VACUUM.7
postgresql94 /usr/pgsql-9.4/share/man/man7/VALUES.7
postgresql94 /usr/pgsql-9.4/share/man/man7/WITH.7
postgresql94 /usr/share/doc/postgresql94-9.4.5
postgresql94 /usr/share/doc/postgresql94-9.4.5/COPYRIGHT
postgresql94 /usr/share/doc/postgresql94-9.4.5/KNOWN_BUGS
postgresql94 /usr/share/doc/postgresql94-9.4.5/MISSING_FEATURES
postgresql94 /usr/share/doc/postgresql94-9.4.5/README.rpm-dist
postgresql94 /usr/share/doc/postgresql94-9.4.5/bug.template
[root@backup soft_bak]# rpm -qp postgresql94-server-9.4.5-1PGDG.rhel7.x86_64.rpm --filesbypkg
postgresql94-server /etc/pam.d/postgresql94
postgresql94-server /etc/sysconfig/pgsql
postgresql94-server /usr/lib/systemd/system/postgresql-9.4.service
postgresql94-server /usr/lib/tmpfiles.d/postgresql-9.4.conf
postgresql94-server /usr/pgsql-9.4/bin/initdb
postgresql94-server /usr/pgsql-9.4/bin/pg_controldata
postgresql94-server /usr/pgsql-9.4/bin/pg_ctl
postgresql94-server /usr/pgsql-9.4/bin/pg_resetxlog
postgresql94-server /usr/pgsql-9.4/bin/postgres
postgresql94-server /usr/pgsql-9.4/bin/postgresql94-check-db-dir
postgresql94-server /usr/pgsql-9.4/bin/postgresql94-setup
postgresql94-server /usr/pgsql-9.4/bin/postmaster
postgresql94-server /usr/pgsql-9.4/lib
postgresql94-server /usr/pgsql-9.4/lib/ascii_and_mic.so
postgresql94-server /usr/pgsql-9.4/lib/cyrillic_and_mic.so
postgresql94-server /usr/pgsql-9.4/lib/dict_int.so
postgresql94-server /usr/pgsql-9.4/lib/dict_snowball.so
postgresql94-server /usr/pgsql-9.4/lib/dict_xsyn.so
postgresql94-server /usr/pgsql-9.4/lib/euc2004_sjis2004.so
postgresql94-server /usr/pgsql-9.4/lib/euc_cn_and_mic.so
postgresql94-server /usr/pgsql-9.4/lib/euc_jp_and_sjis.so
postgresql94-server /usr/pgsql-9.4/lib/euc_kr_and_mic.so
postgresql94-server /usr/pgsql-9.4/lib/euc_tw_and_big5.so
postgresql94-server /usr/pgsql-9.4/lib/latin2_and_win1250.so
postgresql94-server /usr/pgsql-9.4/lib/latin_and_mic.so
postgresql94-server /usr/pgsql-9.4/lib/plpgsql.so
postgresql94-server /usr/pgsql-9.4/lib/test_parser.so
postgresql94-server /usr/pgsql-9.4/lib/tsearch2.so
postgresql94-server /usr/pgsql-9.4/lib/utf8_and_ascii.so
postgresql94-server /usr/pgsql-9.4/lib/utf8_and_big5.so
postgresql94-server /usr/pgsql-9.4/lib/utf8_and_cyrillic.so
postgresql94-server /usr/pgsql-9.4/lib/utf8_and_euc2004.so
postgresql94-server /usr/pgsql-9.4/lib/utf8_and_euc_cn.so
postgresql94-server /usr/pgsql-9.4/lib/utf8_and_euc_jp.so
postgresql94-server /usr/pgsql-9.4/lib/utf8_and_euc_kr.so
postgresql94-server /usr/pgsql-9.4/lib/utf8_and_euc_tw.so
postgresql94-server /usr/pgsql-9.4/lib/utf8_and_gb18030.so
postgresql94-server /usr/pgsql-9.4/lib/utf8_and_gbk.so
postgresql94-server /usr/pgsql-9.4/lib/utf8_and_iso8859.so
postgresql94-server /usr/pgsql-9.4/lib/utf8_and_iso8859_1.so
postgresql94-server /usr/pgsql-9.4/lib/utf8_and_johab.so
postgresql94-server /usr/pgsql-9.4/lib/utf8_and_sjis.so
postgresql94-server /usr/pgsql-9.4/lib/utf8_and_sjis2004.so
postgresql94-server /usr/pgsql-9.4/lib/utf8_and_uhc.so
postgresql94-server /usr/pgsql-9.4/lib/utf8_and_win.so
postgresql94-server /usr/pgsql-9.4/share
postgresql94-server /usr/pgsql-9.4/share/conversion_create.sql
postgresql94-server /usr/pgsql-9.4/share/extension
postgresql94-server /usr/pgsql-9.4/share/extension/plpgsql--1.0.sql
postgresql94-server /usr/pgsql-9.4/share/extension/plpgsql--unpackaged--1.0.sql
postgresql94-server /usr/pgsql-9.4/share/extension/plpgsql.control
postgresql94-server /usr/pgsql-9.4/share/information_schema.sql
postgresql94-server /usr/pgsql-9.4/share/locale/cs/LC_MESSAGES/pg_controldata-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/cs/LC_MESSAGES/pg_resetxlog-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/cs/LC_MESSAGES/plpgsql-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/de/LC_MESSAGES/pg_controldata-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/de/LC_MESSAGES/pg_resetxlog-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/de/LC_MESSAGES/plpgsql-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/de/LC_MESSAGES/postgres-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/es/LC_MESSAGES/pg_controldata-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/es/LC_MESSAGES/pg_resetxlog-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/es/LC_MESSAGES/plpgsql-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/es/LC_MESSAGES/postgres-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/pg_controldata-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/pg_resetxlog-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/plpgsql-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/fr/LC_MESSAGES/postgres-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/id/LC_MESSAGES/postgres-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/it/LC_MESSAGES/pg_controldata-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/it/LC_MESSAGES/pg_resetxlog-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/it/LC_MESSAGES/plpgsql-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/it/LC_MESSAGES/postgres-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/ja/LC_MESSAGES/pg_controldata-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/ja/LC_MESSAGES/pg_resetxlog-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/ja/LC_MESSAGES/plpgsql-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/ja/LC_MESSAGES/postgres-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/pg_controldata-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/pg_resetxlog-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/plpgsql-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/pl/LC_MESSAGES/postgres-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/pg_controldata-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/pg_resetxlog-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/plpgsql-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/pt_BR/LC_MESSAGES/postgres-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/ro/LC_MESSAGES/plpgsql-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/pg_controldata-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/pg_resetxlog-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/plpgsql-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/ru/LC_MESSAGES/postgres-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/sv/LC_MESSAGES/pg_controldata-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/sv/LC_MESSAGES/pg_resetxlog-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/pg_controldata-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/pg_resetxlog-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/plpgsql-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/zh_CN/LC_MESSAGES/postgres-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/locale/zh_TW/LC_MESSAGES/plpgsql-9.4.mo
postgresql94-server /usr/pgsql-9.4/share/man/man1/initdb.1
postgresql94-server /usr/pgsql-9.4/share/man/man1/pg_controldata.1
postgresql94-server /usr/pgsql-9.4/share/man/man1/pg_ctl.1
postgresql94-server /usr/pgsql-9.4/share/man/man1/pg_resetxlog.1
postgresql94-server /usr/pgsql-9.4/share/man/man1/postgres.1
postgresql94-server /usr/pgsql-9.4/share/man/man1/postmaster.1
postgresql94-server /usr/pgsql-9.4/share/pg_hba.conf.sample
postgresql94-server /usr/pgsql-9.4/share/pg_ident.conf.sample
postgresql94-server /usr/pgsql-9.4/share/pg_service.conf.sample
postgresql94-server /usr/pgsql-9.4/share/postgres.bki
postgresql94-server /usr/pgsql-9.4/share/postgres.description
postgresql94-server /usr/pgsql-9.4/share/postgres.shdescription
postgresql94-server /usr/pgsql-9.4/share/postgresql.conf.sample
postgresql94-server /usr/pgsql-9.4/share/psqlrc.sample
postgresql94-server /usr/pgsql-9.4/share/recovery.conf.sample
postgresql94-server /usr/pgsql-9.4/share/snowball_create.sql
postgresql94-server /usr/pgsql-9.4/share/sql_features.txt
postgresql94-server /usr/pgsql-9.4/share/system_views.sql
postgresql94-server /usr/pgsql-9.4/share/timezonesets/Africa.txt
postgresql94-server /usr/pgsql-9.4/share/timezonesets/America.txt
postgresql94-server /usr/pgsql-9.4/share/timezonesets/Antarctica.txt
postgresql94-server /usr/pgsql-9.4/share/timezonesets/Asia.txt
postgresql94-server /usr/pgsql-9.4/share/timezonesets/Atlantic.txt
postgresql94-server /usr/pgsql-9.4/share/timezonesets/Australia
postgresql94-server /usr/pgsql-9.4/share/timezonesets/Australia.txt
postgresql94-server /usr/pgsql-9.4/share/timezonesets/Default
postgresql94-server /usr/pgsql-9.4/share/timezonesets/Etc.txt
postgresql94-server /usr/pgsql-9.4/share/timezonesets/Europe.txt
postgresql94-server /usr/pgsql-9.4/share/timezonesets/India
postgresql94-server /usr/pgsql-9.4/share/timezonesets/Indian.txt
postgresql94-server /usr/pgsql-9.4/share/timezonesets/Pacific.txt
postgresql94-server /usr/pgsql-9.4/share/tsearch_data/danish.stop
postgresql94-server /usr/pgsql-9.4/share/tsearch_data/dutch.stop
postgresql94-server /usr/pgsql-9.4/share/tsearch_data/english.stop
postgresql94-server /usr/pgsql-9.4/share/tsearch_data/finnish.stop
postgresql94-server /usr/pgsql-9.4/share/tsearch_data/french.stop
postgresql94-server /usr/pgsql-9.4/share/tsearch_data/german.stop
postgresql94-server /usr/pgsql-9.4/share/tsearch_data/hungarian.stop
postgresql94-server /usr/pgsql-9.4/share/tsearch_data/hunspell_sample.affix
postgresql94-server /usr/pgsql-9.4/share/tsearch_data/ispell_sample.affix
postgresql94-server /usr/pgsql-9.4/share/tsearch_data/ispell_sample.dict
postgresql94-server /usr/pgsql-9.4/share/tsearch_data/italian.stop
postgresql94-server /usr/pgsql-9.4/share/tsearch_data/norwegian.stop
postgresql94-server /usr/pgsql-9.4/share/tsearch_data/portuguese.stop
postgresql94-server /usr/pgsql-9.4/share/tsearch_data/russian.stop
postgresql94-server /usr/pgsql-9.4/share/tsearch_data/spanish.stop
postgresql94-server /usr/pgsql-9.4/share/tsearch_data/swedish.stop
postgresql94-server /usr/pgsql-9.4/share/tsearch_data/synonym_sample.syn
postgresql94-server /usr/pgsql-9.4/share/tsearch_data/thesaurus_sample.ths
postgresql94-server /usr/pgsql-9.4/share/tsearch_data/turkish.stop
postgresql94-server /usr/pgsql-9.4/share/tsearch_data/unaccent.rules
postgresql94-server /usr/pgsql-9.4/share/tsearch_data/xsyn_sample.rules
postgresql94-server /var/lib/pgsql
postgresql94-server /var/lib/pgsql/9.4
postgresql94-server /var/lib/pgsql/9.4/backups
postgresql94-server /var/lib/pgsql/9.4/data
postgresql94-server /var/run/postgresql
一个RPM文件通常有一下几部分组成:
lead :标识版本等信息
signature:RPM完整性检查
header:软件描述信息
archive:软件文件数据
制作RPM需要一下几个要素:
1) 生成RPM所用的文件列表或者源代码。
2) 根据文件列表或者源代码生成RPM的规范,也就是所谓的SPEC文件。
3) 根据SPEC文件加工源码/文件的工具(RHEL系统采用rpmbuild命令)。
用3)中工具提供的功能,按照2)的规范去加工1)的原材料,就 生成了RPM。这个过程与生活中的做饭过程很像。
源代码 + SPEC文件 + rpmbuild命令 à RPM文件
RPM制作过程
1) 环境准备
2) 源码准备
3) SPEC文件编写
4) 生成RPM包
Linux系统自带的RPM生成环境在/usr/src/redhat目录下,该目录包含的子目录及其作用如下:
BUILD:在这个子目录下进行代码编译。
RPMS:最终生成的RPM文件存储在这个子目录下。
SOURCES:制作RPM的源码所在的子目录。
SPECS:SPEC文件所在的子目录。
SRPMS:生成的源码RPM包存储的子目录。
源码准备
1 下载wget的源码包wget-1.14.tar.gz,然后在个人目录下建立RPM的工作目录。
mkdir –p /home/postgres/rpmbuid_dir
2 建立对应的几个工作目录。
mkdir BUILD RPMS SOURCES SPECS SRPMS
3 把源码移动到SOURCES目录下。
至此,源码准备工作就完成了。
SPEC文件编写
# SPECS/wget.spec
…
…
…
生成RPM包
运行如下命令,进行RPM的编译生成:
rpmbuild –v –bb SPECS/wget.spec
/usr/lib/rpmmacros文件
man rpmbuild
能够看到rpmbuild使用的宏定义文件的路径如下:
Macro Configuration
/usr/lib/rpm/macros
/usr/lib/rpm/redhat/macros
/etc/rpm/macros
~/.rpmmacros
生效顺序是从上往下的,
FILES
rpmrc Configuration
/usr/lib/rpm/rpmrc
/usr/lib/rpm/redhat/rpmrc
/etc/rpmrc
~/.rpmrc
Database
/var/lib/rpm/Basenames
/var/lib/rpm/Conflictname
/var/lib/rpm/Dirnames
/var/lib/rpm/Filemd5s
/var/lib/rpm/Group
/var/lib/rpm/Installtid
/var/lib/rpm/Name
/var/lib/rpm/Packages
/var/lib/rpm/Providename
/var/lib/rpm/Provideversion
/var/lib/rpm/Pubkeys
/var/lib/rpm/Removed
/var/lib/rpm/Requirename
/var/lib/rpm/Requireversion
/var/lib/rpm/Sha1header
/var/lib/rpm/Sigmd5
/var/lib/rpm/Triggername
Temporary
/var/tmp/rpm*
rpmbuild
[root@minion1 rpm]# rpmbuild --help
Usage: rpmbuild [OPTION...]
--quiet
Build options with [ <specfile> | <tarball> | <source package> ]:
-bp build through %prep (unpack sources and apply patches) from <specfile>
-bc build through %build (%prep, then compile) from <specfile>
-bi build through %install (%prep, %build, then install) from <specfile>
-bl verify %files section from <specfile>
-ba build source and binary packages from <specfile>
-bb build binary package only from <specfile>
-bs build source package only from <specfile>
-tp build through %prep (unpack sources and apply patches) from <tarball>
-tc build through %build (%prep, then compile) from <tarball>
-ti build through %install (%prep, %build, then install) from <tarball>
-ta build source and binary packages from <tarball>
-tb build binary package only from <tarball>
-ts build source package only from <tarball>
--rebuild build binary package from <source package>
--recompile build through %install (%prep, %build, then install) from <source package>
--buildroot=DIRECTORY override build root
--clean remove build tree when done
--nobuild do not execute any stages of the build
--nodeps do not verify build dependencies
--nodirtokens generate package header(s) compatible with (legacy) rpm[23] packaging
--rmsource remove sources when done
--rmspec remove specfile when done
--short-circuit skip straight to specified stage (only for c,i)
--target=CPU-VENDOR-OS override target platform
Common options for all rpm modes and executables:
-D, --define='MACRO EXPR' define MACRO with value EXPR
-E, --eval='EXPR' print macro expansion of EXPR
--macros=<FILE:...> read <FILE:...> instead of default file(s)
--nodigest don't verify package digest(s)
--nosignature don't verify package signature(s)
--rcfile=<FILE:...> read <FILE:...> instead of default file(s)
-r, --root=ROOT use ROOT as top level directory (default: "/")
--querytags display known query tags
--showrc display final rpmrc and macro configuration
--quiet provide less detailed output
-v, --verbose provide more detailed output
--version print the version of rpm being used
Options implemented via popt alias/exec:
--dbpath=DIRECTORY use database in DIRECTORY
--with=<option> enable configure <option> for build
--without=<option> disable configure <option> for build
--buildpolicy=<policy> set buildroot <policy> (e.g. compress man pages)
Help options:
-?, --help Show this help message
--usage Display brief usage message
build脚本
源代码编译成二进制包的过程:
1 解压源码
2 编译源码
3 安装二进制程序
4 清除编译环境
%prep
%build
%install
%clean
%prep主要完成编译前环境的准备工作,包括:
创建工作的顶级目录。
把源代码解压压缩到build目录。
如果有补丁的话,给所有代码打补丁。
为代码编译做好准备。
%build 脚本主要任务是在源码目录中调用configure和build脚本来对源码进行编译,比如:
%build
./configure –with-ssl=openssl
make
当%build段代码执行后,源码完成编译过程。
%install段代码把%build段生成的程序安装到目标目录,最常见的执行脚本如下:
%install
make install prefix=$RPM_BUILD_ROOT/usr
mkdir –p $RPM_BUILD_ROOT/usr/foo
install binname $RPM_BUILD_ROOT/usr/foo/bin
%clean 点运行rpmbuild运行完成后要执行的脚本,大多数时候它的动作是直接删除build目录。
%clean
[“$RPM_BUILD_ROOT” != “/”] && rm –rf $RPM_BUILD_ROOT
安装/卸载时脚本
sudo rpm –ivh xxx.rpm
RPM提供了4个安装/卸载时执行脚本的hook点,两个用于安装,两个用于卸载。具体如下:
%pre段的命令在RPM安装前执行。
%post段的命令在RPM安装后执行。
%preun 段的命令在RPM卸载前执行。
%postun 段的命令在RPM卸载后执行。
Macros(宏)
%define version 1.14
The %setup macro,which is used to unpack the original sources.
The %patch macro,which is used to apply patches to the original sources.
%setup 宏用来解压缩源代码
%patch 宏用来给源码打补丁
1 setup 宏
setup宏用来对压缩的源码进行解压缩。
setup宏在使用时多数情况下不需要任何选项,比如:
Source:ftp://ftp.gnomovision.com/pub/cdplayer/cdplayer-1.0.tgz
%prep
%setup
这个过程翻译成可执行脚本后,内容如下:
cd /usr/src/redhat/BUILD
rm –rf cdplayer-1.0
gzip –dc /usr/src/redhat/SOURCES/cdplayer-1.0.tgz |tar –xvvf –
if [ $? –ne 0 ]; then
exit $?
fi
cd cdplayer-1.0
cd /usr/src/redhat/BUILD/cdplayer-1.0
chown –R root.root .
chmod –R a+rX,g-w,o-w .
%setup不加任何参数时,rpm命令在执行时默认了一下几个约定:
build目录是cdplayer-1.0,并且路径是/usr/src/redhat/BUILD/cdplayer-1.0
删除了原来的build目录
对源代码进行了解压缩
修改属性时需要进入cdplayer-1.0目录
在SPEC文件中,%setup宏支持了几个选项,可以用来修改打包过程中的执行流程。
-n选项
-n <name>
用来设置源码编译目录的名字,默认的编译目录名字是<name>-<version>的方式,该选项使得使用者可以通过-n name来自定义目录,比如添加如下代码:
%setup –n cd-player
setup的执行过程如下:
cd /usr/src/redhat/BUILD
rm –rf cd–player
gzip –dc /usr/src/redhat/SOURCES/cdplayer-1.0.tgz | tar –xvvf –
if [ $? –ne 0]; then
exit $?
fi
cd cd-player
cd /usr/src/redhat/BUILD/cd-player
chown –R root.root .
chmod –R a+rX,g-w,o-w .
-c 选项
%setup –c(创建build目录,并且在解压缩前进入该目录)
-c可以创建目录,然后在目录中 解压缩文件。
在该例中,加上-c选项后,setup执行过程如下:
cd /usr/src/redhat/BUILD
rm –rf cdplayer-1.0
mkdir –p cdplayer-1.0
cd cdplayer-1.0
gzip –dc /usr/src/redhat/SOURCES/cdplayer-1.0.tgz | tar –xvvf –
if [ $? –ne 0]; then
exit $?
fi
cd /usr/src/redhat/BUILD/cdplayer-1.0
chown –R root.root .
chmod –R a+rX,g-w,o-w .
-D 选项
当解压缩的代码要被追加到新的目录树中时,可以使用这个选项,它要求以前的目录不被删除。用法如下:
%setup –D
当添加-D选项后,setup执行过程如下:
cd /usr/src/redhat/BUILD
gzip –dc /usr/src/redhat/SOURCES/cdplayer-1.0.tgz | tar –xvvf –
if [ $? –ne 0]; then
exit $?
fi
cd cdplayer-1.0
cd /usr/src/redhat/BUILD/cdplayer-1.0
chown –R root.root .
chmod –R a+rX,g-w,o-w .
-T选项
调用方式如下:
%setup –T
该选项用于声明:不进行默认压缩文件的解压缩。
加上-T时setup执行的动作如下:
cd /usr/src/redhat/BUILD
rm –rf cdplayer-1.0
cd cdplayer-1.0
cd /usr/src/redhat/BUILD/cdplayer-1.0
chown –R root.root .
chmod –R a+rX,g-w,o-w .
-b选项
在进入目录前,解压缩某个源代码。调用方式如下:
%setup –b <n> (在进入目录前 解压缩第n个源码包)
SPEC中对每个Source定义的解释是:编号为0对应于Source,也就是Source0.在SPEC中,如下写法的执行结果:
%setup –b 0
在进入目录前,解压缩第0个源码,其执行过程如下:
cd /usr/src/redhat/BUILD
rm –rf cdplayer-1.0
gzip –dc /usr/src/redhat/SOURCES/cdplayer-1.0.tgz | tar –xvvf –
if [ $? –ne 0]; then
exit $?
fi
gzip –dc /usr/src/redhat/SOURCES/cdplayer-1.0.tgz | tar –xvvf –
if [ $? –ne 0]; then
exit $?
fi
cd cdplayer-1.0
cd /usr/src/redhat/BUILD/cdplayer-1.0
chown –R root.root .
chmod –R a+rX,g-w,o-w .
可以看到这段代码对Source0的解压缩进行了两次。
-T的作用:它的出现是为了避免不必要冗余解压缩。
%setup –T –b 0 结合使用的效果如下:
cd /usr/src/redhat/BUILD
rm –rf cdplayer-1.0
gzip –dc /usr/src/redhat/SOURCES/cdplayer-1.0.tgz | tar –xvvf –
if [ $? –ne 0]; then
exit $?
fi
cd cdplayer-1.0
cd /usr/src/redhat/BUILD/cdplayer-1.0
chown –R root.root .
chmod –R a+rX,g-w,o-w .
-a 选项
调用方法
%setup –a n(在进入目录后解压缩第n个源码)
-b选项是在进入目录前解压缩的。这些都是跟目录访问相关的选项,具体场景可以自己去构造。
patch宏
%patch宏的作用是调用patch命令来给解压缩后的源码打补丁。
$patch宏类似于%setup宏,接收一些选项,执行基本的打补丁操作。
以openssl的SPEC文件为例。
Patch0: openssl-fips-0.9.8e-redhat.patch
Patch1: openssl-0.9.8a-defaults.patch
Patch2: openssl-0.9.8a-link-krb5.patch
Patch3: openssl-0.9.8b-soversion.patch
Patch4: openssl-0.9.8a-enginesdir.patch
Patch5: openssl-0.9.8a-no-rpath.patch
%patch0 –p1 –b .redhat
%patch1 –p1 –b .defaults
#Fix link line for libssl(bug #111154)
%patch2 –p1 –b .krb5
%patch3 –p1 –b .soversion
%patch4 –p1 –b .enginesdir
%patch5 –p1 –b .no-rpath
%patch2可以理解为对patch命令的封装,它解释后的动作就是:调用patch命令把第二个补丁patch2应用到源代码,等同于一下命令:
%patch –P 2
%patch –p <#> 过滤补丁文件中#开头的注释行
%patch3 –b name 对源码打补丁是,设置备份文件的扩展名为.name。
%patch2 –E 删除输出的空文件。
files(文件)
文件用来标识RPM中的文件列表,%files段下面列举的所有文件(目录以及目录内的所有文件)都会被安装到RPM的文件和目录列表中。
file段的每一行表示一个文件或者目录。针对每个文件或者目录,会有一个指令,用来设置这个文件或者目录在被安装机器上最终的属性和文件类别。最常见的用法有:设置文件的属组,属主和模式,标明文件是普通文件、文档文件或者配置文件,更新时是否替换等。
Directives(指令)
文件相关指令
针对文件的指令如下:
%doc 文档指令
%config 配置文件指令
%attr 文件属性指令
%verify 校验指令
%doc 标识一个文件是文档文件,安装后该文件会在RPM的安装机器的数据库中被记录。
默认的doc安装目录是/usr/doc。
可以通过修改rpmrc文件中的defaultdocdir变量的值来修改doc的路径。
%config 标注该文件是一个配置文件,如果设置noreplace属性,RPM包在升级时,就不会用新的配置文件覆盖原来包中的配置文件,如果要卸载包的话,配置文件会被保存为一下形式,然后保留该文件。
“文件名”.save
下面看一个例子:
SPEC文件的内容如下:
%install
mkdir –p $RPM_BUILD_ROOT/ect
install boy.conf $RPM_BUILD_ROOT/etc
%files
%defattr(-,root,root)
/usr/bin/test_boy
%config(noreplace) /etc/boy.conf
RPM生成后,查看配置文件列表如下:
rpm –qp RPMS/i386/test-boy-1.1-1.i386.rpm –configfiles
输出如下:
/etc/boy.cong
包安装完成后,查看配置文件,具体如下:
cat /etc/boy.conf
输出内容如下:
this is the origin config file installed
%attr 指令用来设置文件默认的权限,属主和属组,例如:
%attr (755,root,root)foo.bar 表明foo.bar 文件的属主和属组为root而权限为755
RPM的verify能够校验被安装文件的9个属性。
目录相关指令
docdir指令用于指定配置文件的目录,其调用方式如下:
%docdir xxx
其中xxx为文档目录,%docdir包含了系统默认的文档目录。
/usr/doc,/usr/info,and /usr/man
如下例子:
%docdir /usr/blather
/usr/blather
其中,第一行声明/usr/blather为文档目录,第二行声明/usr/blather为RPM的files列表中的一行,这样不仅/usr/blather成为了文档目录,而且这个目录中的所有文件都会被打包进RPM文件,第二行是不能缺少的,需要注意这一点。如果只需要一部分文档文件,可以逐个列举出来。
dir指令用于目录安装,其应用格式如下:
%dir xxx 指令
如果在%files段的某行写上一个目录名称,那么该目录下的所有子目录和文件都会被打包到对应的RPM中去。但是有时候可能只想安装某个目录,而不想安装该目录内部的文件和子目录,那么久可以用dir指令来实现。
比如源码编译完成后,data目录下有一堆文件,如果把data目录列入%files中,那么它里面的文件就都会被打包到RPM中,二采用以下写法,就只会把这个目录打包进RPM中,而不包含其中的文件。
%dir /usr/local/data
-f
-f是一种文件指令,调用方式如下:
-f 文件名(从文件中读取 %files 的内容)
-f myfile
myfile中一行表示一个文件或者目录。
myfile中支持%files的所有指令,在myfile中写的任何数据,相当于直接写在%files下
-f myfile这种用法能够实现动态文件列表,因为myfile完全可以在build时再生成。而且,“-f 文件名”和直接写文件的用法能够混合使用。比如下面的例子就是用这种混合写法定义了子包latext(子包Subpackage后面介绍)的文件列表:
%files latex –f tetex-latex-skel
/usr/bin/latex
/usr/bin/pslatex
package string
package string 指令用来在一个SPEC文件中创建子包。所谓子包(subpackage)就是除默认RPM包以外的其他RPM包。package string指令的应用格式如下:
%package string
下面是openssl的SPEC文件中子包的例子:
package devel
%package perl
……
以上的%package perl部分表明在openssl.spec中,除了定义openssl包外,还定义了它的子包(注意子包的命名格式是“基础包-子包”),那么,这个SPEC文件中定义了openssl-devel和openssl-perl两个子包。最终编译生成的RPM文件列表如下:
/usr/src/redhat/RPMS/x86_64/openssl-0.9.8v-22.1.x86_64.rpm
/usr/src/redhat/RPMS/x86_64/openssl-devel-0.9.8v-22.1.x86_64.rpm
/usr/src/redhat/RPMS/x86_64/openssl-perl-0.9.8v-22.1.x86_64.rpm
可以看到,除了openssl这个RPM包外,还生成了其他两个子包。
还可以重新定义一个子包名称,比如:
%package –n opens-devel
这样就重新定义了一个子包。而且一下代码段后面的所有Tags就都属于这个子包了。
%package string
例如:
%package perl
%description perl
查看sz命令的安装路径:
#which sz
输出如下:
/usr/bing/sz
然后通过如下命令来看看sz属于哪个软件包:
#rpm –qf /usr/bin/sz
输出如下:
lrzsz-0.12.20-22.1
这样,我们知道sz和rz命令是在lrzsz这个包中,因此在待安装机器上使用rpm命令或者yum命令来安装lrzsz包就可以使用rz命令了。