Redhat7 更换与设置Centos 7 yum源方法记录

Redhat7 更换Centos 7 yum源

6、卸载redhat自带的yum

rpm -qa | grep yum | xargs rpm -e –nodeps

注:a、xargs是一条Unix和类Unix操作系统的常用命令。它的作用是将参数列表转换成小块分段传递给其他命令,以避免参数列表过长的问题

b、–nodeps  强制卸载,不管依赖性

7、下载centos的yum安装包,路径同2,可以直接使用下列链接

需要下载python-urlgrabber-3.10-8.el7.noarch.rpm

卸载原先的python-urlgrabber-3.10-4.el7.noarch.rpm

wget http://mirrors.163.com/centos/7/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm

wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-3.4.3-125.el7.centos.noarch.rpm

wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm

wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-29.el7.noarch.rpm

注意:安装包都在不断更新,请按照包名自己匹配.

阅读更多

RHEL6.3使用和设置CentOS yum源的方法记录

由于Redhat的yum在线更新是收费的,如果没有注册的话是不能使用的,即不能在线安装软件。所以yum install 命令每次都安装失败。

  1. 系统说明:

系统:Red Hat Enterprise Linux Server 6.3 (使用lsb_release -a命令查看)
内核:Linux 2.6.32-279.el6.x86_64(使用uname -a查看)

1 删除RHEL原有的yum

` rpm -aq|grep yum|xargs rpm -e –nodeps  #删除

2 下载新的yum安装包 #这里我们使用CentOS的yum源

“`python
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-60.el6.centos.noarch.rpm

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
“`
(提示:如果下载时提示404找不到错误,请访问http://mirrors.163.com/centos/6/os/x86_64/Packages/,手动查找上面四个包,有时候版本会有点小偏差)

3、安装yum软件包

在很多的教程中,都没有python-urlgrabber-3.9.1-11.el6.noarch.rpm
主要是该版本的yum需要依赖高版本的python-urlgrabber,所以需要在
安装yum之前进行升级。下载源中的各个软件包的版本未必是一致的,需要
进行微调,在最开始的时候还是强制安装python-urlgrabber-3.9.1-11.el6.noarch.rpm
后来才想到rpm命令也有升级功能!!

阅读更多

IBM_TXSeries_CICS Connect to Oracle troubleshooting Notes

下午在配置cics 连接oracle时,在编译oracle1pc.mk遇到报错。下面为排障过程:

1、执行make -f oracle1pc.mk oracle 遇到报错:如下所示:

PCC-S-02201, Encountered the symbol “size_t” when expecting one of the following
:

… auto, char, const, double, enum, float, int, long,
ulong_varchar, OCIBFileLocator OCIBlobLocator,
OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
short, signed, sql_context, sql_cursor, static, struct,
union, unsigned, utext, uvarchar, varchar, void, volatile,
a typedef name, exec oracle, exec oracle begin, exec,
exec sql, exec sql begin, exec sql type, exec sql var,
The symbol “exec,” was substituted for “size_t” to continue.

5/usr/include/stdio.h:
715, /usr/include/stdio.h
extern size_t fwrite (const void *__restrict __ptr, size_t __size,
1
PCC-S-02201, Encountered the symbol “extern” when expecting one of the following
:

, )

0, oracle1pc.pc
PCC-F-02102, C Ԥʱ,

make: *** [oracle1pc.c] Error 1

2、确认profile 文件,oracle的环境变量设置正确:

root@zymh Oracle]# vi /etc/profile

阅读更多

IBM_TXSeries_CICS Connect to MQ troubleshooting Notes

下午配置CICS 9 连接到MQ ,遇到报错,下面为解决过程:

1\配置完后,启动region,遇到报错:

[root@cics bin]# cicscp -v start region MQ StartType=cold
ERZ058504I/0107: Starting RPC daemon.
ERZ058502I/0101: RPC daemon is already running.
ERZ096122I/0264: Processing the ‘start region’ command.
ERZ096158I/0264: The region ‘MQ’ is starting.
ERZ096111I/0224: Processing a start sfs_server command.
ERZ096141I/0224: Starting SFS server ‘/.:/cics/sfs/cics’.
ERZ096112I/0229: The SFS server ‘/.:/cics/sfs/cics’ is running.
ERZ096113I/0231: SFS server has ‘/.:/cics/sfs/cics’ successfully started.
ERZ038216I/0382: Subsystem ‘MQ’ has been initialized.
ERZ096004E/0005: Error occurred when processing the cicscp command.

2\查看 region 启动console日志,报错信息:

阅读更多