centos--change the repository to a local directory

原创 2007年10月05日 14:36:00
Because I want to add/remove applications from my local directory in an i386 computer with centos4.5, I have been tried the directions in the forums as belows:
1. backup /etc/yum.repos.d/*.repo and remove them
2. new a local.repo file with the text (the directory is /tftpboot/distro/centos-4-i386):
#======================================
[local]
name=CentOS-$releasever - Local
baseurl=file:///tftpboot/distro/centos-4-i386
gpgcheck=0
enabled=1
#======================================
3. copy all the rpm package of the 4 cds to /tftpboot/distro/centos-4-i386
4. createrepo /tftpboot/distro/centos-4-i386

When I have done the above I still fail to Add/Remove applications with the GUI, it doesn't work. I tested it by adding the vsftpd package, it prompts that pls insert the 3th cd of centos.

For the sake of having reading english and chinese messages about the topic, I found that what I have done is just the popular solution. It's a pity that I still did't get it. Try later!

openshift:Perhaps your account does not have write access to this directory? You can change the cac

添加了pymongo之后重新部署程序,openshift 出现如下错误  File "/var/lib/openshift/0f9c019e8890400bb48af288d0307389/ap...
  • sdlgxxy
  • sdlgxxy
  • 2013年01月03日 00:00
  • 3514

500 OOPS: cannot change directory:/home/xxx centos6.x

如果你试过#修改ftp的根目录只要修改/etc/vsftpd/vsftpd.conf文件即可: #加入如下几行:local_root=/var/www/html chroot_local_user=Y...
  • xuz0917
  • xuz0917
  • 2016年12月14日 11:09
  • 593

gparted and how to change /home directory to a new partition

First,you should install gparted. sudo apt-get install gparted. and then type second:sudo g...

How to Enable EPEL Repository for RHEL/CentOS 7.x/6.x/5.x

原文链接: http://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/# This howto g...
  • syj0301
  • syj0301
  • 2015年11月03日 14:28
  • 400

centos下mysql问题记录--ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/

一、关于云主机的mysql最近一次云主机的服务器由于被攻击便打算重装一边mysql,彻底删除相关文件后重新安装,没想到怎么装都会出问题。再启动的时候总是出现ERROR 2002 (HY000): Ca...

This howto guide shows you’ll how to enable EPEL repository under RHEL/CentOS 6/5 to install additio

This howto guide shows you’ll how to enable EPEL repository under RHEL/CentOS 6/5 to install addit...

maven local repository

  • 2016年09月01日 16:33
  • 33.81MB
  • 下载

#ASM 翻译系列第十六弹:ASM Internal ASM Active Change Directory

原文: ASM Active Change Directory 作者: Bane Radulovic 译者:郭旭瑞,沃趣科技产品交付部经理,负责QData Cloud高性能数据库云平台、Q...

Change data directory – PostgreSQL

Useful and common task, should be well documented. Let´s try it! Debian 7.4 x64, PostgreSQL 9.3.2 ...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:centos--change the repository to a local directory
举报原因:
原因补充:

(最多只允许输入30个字)