Skip to main content

Posts

Showing posts with the label yum

Chef: ChefDK

Create a linux machine, login into it and execute the following command: curl -s https://omnitruck.chef.io/install.sh | sudo bash -s -- -P chefdk Now we need to change the default ruby to point it to the chef ruby and not the system ruby. Execute the following command for it. echo 'eval "$(chef shell-init bash)"' >> ~/.bash_profile Note: eval  is part of POSIX. Its an interface which can be a shell built-in.Its described in the "POSIX Programmer's Manual":  http://www.unix.com/man-page/posix/1posix/eval/ eval - construct command by concatenating arguments It will take an argument and construct a command of it, which will be executed by the shell. This is the example of the manpage: 1 ) foo = 10 x = foo 2 ) y = '$' $x 3 ) echo $y 4 ) $foo 5 ) eval y = '$' $x 6 ) echo $y 7 ) 10 In the first line you define  $foo  with the value  '10'  and  $x  with the value  'foo' . Now define  $y , which consists ...

Yum : Operation too slow. Less than 1000 byt es/sec transferred the last 30 seconds

First thing to try is the usual yum clean all You might be running 3rd party repositories and do not have yum-plugin-priorities installed. This could compromise your system, so please install and configure  yum-plugin-priorities . You could also try the following: yum –disableplugin=fastestmirror update. minrate  This sets the low speed threshold in bytes per second. If the server is sending data slower than this for at least  timeout' seconds, Yum aborts the connection. The default is 1000′.   timeout  Number of seconds to wait for a connection before timing out. Defaults to 30 seconds. This may be too short of a time for extremely overloaded sites. You can reduce  minrate  and/or increase  timeoute . Just add/edit these parameters in  /etc/yum.conf [main]  section. For example: [main] ... minrate=1 timeout=300

Yum : Operation too slow. Less than 1000 byt es/sec transferred the last 30 seconds

First thing to try is the usual yum clean all You might be running 3rd party repositories and do not have yum-plugin-priorities installed. This could compromise your system, so please install and configure  yum-plugin-priorities . You could also try the following: yum --disableplugin=fastestmirror update. minrate  This sets the low speed threshold in bytes per second. If the server is sending data slower than this for at least  timeout' seconds, Yum aborts the connection. The default is 1000'.   timeout  Number of seconds to wait for a connection before timing out. Defaults to 30 seconds. This may be too short of a time for extremely overloaded sites. You can reduce  minrate  and/or increase  timeoute . Just add/edit these parameters in  /etc/yum.conf [main]  section. For example: [main] ... minrate=1 timeout=300

How to List Files Installed From a RPM or DEB Package in Linux

Have you ever wondered where the various files contained inside a package are installed (located) in the Linux file system? In this article, we’ll show how to list all files installed from or present in a certain package or group of packages in Linux. This can help you to easily locate important package files like configurations files, documentation and more. Let’s look at the different methods of listing files in or installed from a package: How to List All Files of Installed Package in Linux You can use the  repoquery command  which is part of the  yum-utils to list files installed  on a CentOS/RHEL system from a given package. To install and use  yum-utils , run the commands below: # yum update # yum install yum-utils Now you can list files of an installed RPM package, for example  httpd  web server (note that the package name is case-sensitive). The  --installed  flag means installed packages and  -l  flags enabl...

Creating custom YUM repo

This page will be useful when creating your own/ custom yum repo and using it for your yum installations. The standard RPM package management tool in Fedora, Red Hat Enterprise Linux, and CentOS is the yum package manager. Yum works quite well, if a little bit slower than other RPM package managers like apt4rpm and urpmi, but it is solid and handles dependencies extremely well. Using it with official and third-party repositories is a breeze to set up, but what if you want to use your own repository? Perhaps you manage a large computer lab or network and need to have — or want to have — certain packages available to these systems that you maintain in-house. Or perhaps you simply want to set up your own repository to share a few RPM packages. The following are the steps to create your own repo. Step-by-step guide Follow these steps on server machine. Creating your own yum repository is very simple, and very straightforward. In order to do it, you need the  createrepo ...

Creating custom YUM repo

This page will be useful when creating your own/ custom yum repo and using it for your yum installations. The standard RPM package management tool in Fedora, Red Hat Enterprise Linux, and CentOS is the yum package manager. Yum works quite well, if a little bit slower than other RPM package managers like apt4rpm and urpmi, but it is solid and handles dependencies extremely well. Using it with official and third-party repositories is a breeze to set up, but what if you want to use your own repository? Perhaps you manage a large computer lab or network and need to have — or want to have — certain packages available to these systems that you maintain in-house. Or perhaps you simply want to set up your own repository to share a few RPM packages. The following are the steps to create your own repo. Step-by-step guide Follow these steps on server machine. Creating your own yum repository is very simple, and very straightforward. In order to do it, you need the  createrepo  tool, which can b...