Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[yum-server]
name= This is my RPM store
baseurl=file:///var/ftp/pub/
enable=1
gpgcheck=0
6. createrepo -v /var/ftp/pub
7. yum clean all
After doing all this seps am getting following errors
1.[root@srikar /]# yum update
Loaded plugins: product-id, subscription-manager
Updating Red Hat repositories.
server | 1.3 kB 00:00 ...
server/primary | 238 kB 00:00 ...
server 962/962
Setting up Update Process
No Packages marked for Update
2.[root@srikar /]# yum install cron*
Loaded plugins: product-id, subscription-manager
Updating Red Hat repositories.
Setting up Install Process
Nothing to do.
[root@srikar /]# yum repolist all
Loaded plugins: product-id, subscription-manager
Updating Red Hat repositories.
repo id repo name status
server This is my RPM store enabled: 962
repolist: 962
2.
[root@srikar /]# yum repolist enabled
Loaded plugins: product-id, subscription-manager
Updating Red Hat repositories.
repo id repo name status
server This is my RPM store 962
repolist: 962
but i try to install any package that are in yum list all it gives following error
[root@srikar /]# yum install rsync.i686
Loaded plugins: product-id, subscription-manager
Updating Red Hat repositories.
Setting up Install Process
Nothing to do
[root@srikar /]#
If so, try with something that isn't already installed. You can use 'yum list packagename' or 'rpm -q packagename' to determine if what you want to install is already installed or not. Depending on if you performed an @everything install or not, may take a few attempts... or you can look at
Code:
yum list
output and pick something.
Code:
yum list available
Maybe try with iptraf.
Code:
yum install iptraf
I've used in on occasion to demonstrate or test package installations as it's often not pre-installed on the systems I've been on.
[root@srikar pub]# yum repolist all
Loaded plugins: product-id, subscription-manager
Updating Red Hat repositories.
repo id repo name status
rhel6 rpm enabled: 0
repolist: 0
U missed out python-deltarpm package. Try My method (did it in RHEL6, and works flawless), and you'll need to be root for this.
1. Mount the disc, and install vsftpd
2. Create a folder in /var/ftp, and copy all the packages over there (let's assume the folder name is 'abc')
3. cd into folder in terminal, and
rpm -ivh deltarpm*
rpm -ivh python-deltarpm*
rpm -ivh createrepo
4. Then do the createrepo
createrepo /var/ftp/abc
this'll take a couple of minutes
5. Create the .repo file in /etc/yum.repos.d (any name you're free to choose, just mind the .repo extension, THIS IS NOT A HIDDEN FILE!)
The content should be like this
This works great for me, and you can also share this repository with other computers in the network, all you have to do is create the .repo in their /etc/yum.repos.d, just in the baseurl, change 'localhost' into your own IP address, and in your computer, allow communication for FTP services from the firewall.
I hope this'll help you!
Last edited by JackHamm3r; 04-23-2013 at 03:36 AM.
Reason: Typing error!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.