banner:command not found
hi,
When i execute banner command the output is being displayed as banner:command not found When ever i give yum install banner the output is Loading "installonlyn" plugin Setting up Install Process Setting up repositories Parsing package install arguments Nothing to do what is the problem here. Any help appreciated. Thanks, Prakash. |
Banner is an old unix command, which is not part of the default linux installation anymore. Most likely there is no package called banner, but maybe it is provided by something else. You can find out using
Code:
yum provides banner |
hi,
I have given that command and I got some packages. When ever i use that packages and give yum install the output is the same saying that Loading "installonlyn" plugin Setting up Install Process Setting up repositories Parsing package install arguments Nothing to do Please check this once. Thanks, Prakash. |
What distribution and version are you using? Please post the results of ' yum repolist '.
|
Hi,
I am working on CentOS 5.2 This is the output of yum repolist Loading "installonlyn" plugin usage: yum [options] < grouplist, localinstall, groupinfo, localupdate, resolvedep, erase, deplist, groupremove, makecache, upgrade, provides, shell, install, whatprovides, groupinstall, update, groupupdate, info, search, check-update, list, remove, clean, grouperase > options: -h, --help show this help message and exit -t, --tolerant be tolerant of errors -C run entirely from cache, don't update cache -c [config file] config file location -R [minutes] maximum command wait time -d [debug level] debugging output level -e [error level] error output level -y answer yes for all questions --version show Yum version and exit --installroot=[path] set install root --enablerepo=[repo] enable one or more repositories (wildcards allowed) --disablerepo=[repo] disable one or more repositories (wildcards allowed) -x [package], --exclude=[package] exclude package(s) by name or glob --obsoletes enable obsoletes processing during updates --noplugins disable Yum plugins None Thanks, Prakash |
It looks like you have all of your repos disabled. Take a look in your /etc/yum.repos.d/ directory. You should have a number of files XXX.repo. If you edit these files you should find a line that says enable=0 (repo turned off), which if you want to use that repo should be set to enable=1(repo turned on).
|
Hi,
Its correct. Now I have enabled in both the files in /etc/yum.repos.d The files are CentOS-Base.repo and CentOS-Media.repo But, I did not get what to do next. Will you please say me in detail. Thanks, Prakash |
hi,
After enabling in the files mentioned above, When i give yum install package or yum provides command i am getting the following output. file:///media/CentOS/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/media/CentOS/repodata/repomd.xml' Trying other mirror. file:///media/cdrom/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/media/cdrom/repodata/repomd.xml' Trying other mirror. file:///media/cdrecorder/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/media/cdrecorder/repodata/repomd.xml' Trying other mirror. Error: Cannot open/read repomd.xml file for repository: c5-media what should i modify to solve this error. thanks, Prakash. |
Look's like you've enabled the repos to be read from the CD/DVD drive attached (if any).
You prob wanted the internet repos. You'll have to re-edit those files. You should be able to figure that out on your own. If not, post the files here. |
Hi,
You have said correctly. I have modified that but how to get banner command work? thanks, Prakash |
Use the suggestion from colucix
Quote:
|
hi,
I have given that command and I got some packages. When ever i use that packages and give yum install the output is the same saying that Loading "installonlyn" plugin Setting up Install Process Setting up repositories Parsing package install arguments Nothing to do Please check this once. Thanks, Prakash. |
I think your repos are still not quite right. Try " yum repolist " again. If it does not give you a response it means the repos are still off. If that is the case post your CentOS-Base.repo file.
|
Hi,
I have executed yum repolist again but did not find any result. I am posting here the file CentOS-Base.repo [HTML][base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 #released updates [updates] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 #packages used/produced in the build but not released [addons] name=CentOS-$releasever - Addons mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons #baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 #additional packages that may be useful [extras] name=CentOS-$releasever - Extras mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 [/HTML] Please check this once. Thanks, Prakash. |
Try to add enabled=1 to all the repositories, where missing:
Code:
[base] |
All times are GMT -5. The time now is 02:50 PM. |