Chef correct way to load new rpm and install package

Chef correct way to load new rpm and install package

By : Cladanggel
Date : November 25 2020, 07:06 PM
it should still fix some issue It always works by installing from source, but yum is preferred to install rpm to manage dependencies and updates.
If you just want php v5.3, go ahead using the php cookbook where the default option is installing php53 from CentOS yum repo.
code :

Share : facebook icon twitter icon
What is the idiomatic way to install a Debian package using Chef?

What is the idiomatic way to install a Debian package using Chef?

By : stin47
Date : March 29 2020, 07:55 AM
This might help you The Right Thing is to use the built-in resource types. Presuming you've set the version and arch variables appropriately:
code :
remote_file "/tmp/vcider_#{version}_#{arch}.deb" do
  source "https://my.vcider.com/m/downloads/vcider_#{version}_#{arch}.deb"
  mode 0644
  checksum "" # PUT THE SHA256 CHECKSUM HERE

dpkg_package "vcider" do
  source "/tmp/vcider_#{version}_#{arch}.deb"
  action :install
How to make chef check for RPM package and then install?

How to make chef check for RPM package and then install?

By : Banktella Brasi
Date : March 29 2020, 07:55 AM
With these it helps I am currently using chef to install the RPM JDK package but the problem is that it does it every single time even if the package is already downloaded and installed. I tried finding an option for checking before installing but there wasn't any. Is there a way to get around this such that I can skip packages that are already installed? Debian's package management skips already installed packages by default, but RPM package manager doesn't seem to do that. , I know this is old, but I believe you want:
code :
remote_file "your-remote-file" do
  not_if "rpm -qa | grep -qx 'your-package'"
source for package to install via chef

source for package to install via chef

By : Tankouille
Date : March 29 2020, 07:55 AM
Hope that helps Quoting the package documentation
code :
remote_file '/usr/local/src/my_package.rpm' do
  source 'http://any_internal_web_server/path/my_package.rpm'

package 'my_package.rpm' do
  source '/usr/local/src/my_package.rpm'
Install apt package via Chef solo and Vagrant

Install apt package via Chef solo and Vagrant

By : Daniel Francis
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , If you are using the system cookbook from Supermarket, you need to include the system::install_packages recipe and set the node['system']['packages']['install'] attribute:
code :
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "ubuntu/trusty64"
  config.vm.provision :chef_solo do |chef|
    chef.cookbooks_path = ["chef/site-cookbooks", "cookbooks"]
    chef.add_recipe "build-essential"
    chef.add_recipe "apt"

    chef.add_recipe "system::install_packages"
    chef.json = {
      "system" => {
        "packages" => {
          "install" => ["libgmp3-dev"]
Chef: Install package in Centos 7

Chef: Install package in Centos 7

By : Febrianto Rachmat
Date : March 29 2020, 07:55 AM
I hope this helps you . I'd like to install net-tools on my centos/7 node. , Just use a package resource, like:
code :
package 'net-tools' do
  action :install
package 'net-tools'
case node['platform']
  when 'centos'
    package 'net-utils'
  when 'other_os'
    package 'other_package_name'
Related Posts Related Posts :
  • What could be causing my WhatsApp Stickers Pack not to work?
  • How Can I Reorder/Sort The Collections List in Directus?
  • Is this language generic/mighty enough to be used for a generic game AI?
  • graphite, use regular expressions to select the target, or an alternative
  • subtract functions with type real in ml
  • how to filter '(' in navision 2013
  • sending sms from a mobile browser
  • NuGet behind firewall
  • Gstreamer hangs while generating timelapse from JPEGs on Raspberry pi
  • How to retrieve total view count of large number of pages combined from the GA API
  • Websites rich with exercices or explanation for SML?
  • Is there a TempData equivalent in ServiceStack?
  • scipy-0.12.0 failing to install on mountain lion using python setup.py install
  • Looking for simplest option to render Razor cshtml pages in a console application without any web server
  • Evaluating variables at a specific time in Modelica
  • When I run the Application, only "web" engine is running in GlassFish. "webservices" is not started
  • How To Set MIME Type Of Google Drive File
  • Remove Missing Values in Weka
  • Reloading a UICollectionView using reloadData method returns immediately before reloading data
  • carrot2 - can I cluster documents from a folder?
  • StreamSocket has no Close Implementation in C#
  • Rails, Foundation 4, Respond.js not working properly in IE8
  • How can i create imagesurface from cairo xlib's Graphics Context using cairo and x11 Api's?
  • CKEditor "overflow: scroll" on parent causes toolbar to freeze at initial position
  • Differences between components and controls in ENYO
  • Photoshop making isometric?
  • Does Intel IPP 8.0 support in-place operations?
  • What is Object dictionary in CANOpen?
  • Example of orbBasic Indexed User Variables
  • convert to ABSOLUTE in logback
  • How to conditionally download file using p:fileDownload
  • Error on pod install
  • Set HTTP GET Parameters in Finagle
  • different attack that uses sql injection
  • How can I change my xampp username not as 'root'
  • AMQP Content header payload structure
  • Apache POI formula evaluation not working for Excel IF
  • How can I trace RESTEasy's dispatch?
  • Map Freezes on iOS 7 with Google Maps SDK 1.4
  • Comparing lists, is the subset list within the first list
  • Non-ascii character highlight in Sublime Text 2
  • Installing Magit in Aquamacs
  • Receiving error - System.Net.Mail.SmtpException: 4.3.2 try again later
  • Coreaudio render callback in monotouch
  • The command 'yarn --v' also initiates 'yarn install' and installs packages automatically. Why is this happening?
  • save multiple matches in a list (grep or awk)
  • Can a number register be used in a groff request?
  • Mapping FAQ with RASA for large dataset (2000+)
  • Fragment not receiving LiveData updates after remove + add
  • FitText.js makes text bigger rather than smaller
  • ARM - Implementing stack with load/store multiple register values
  • How to check if a ChromeCast Session is already in progress
  • ngForm inside a Carousel Slide in UI Bootstrap not working
  • Clearing attributes in Tritium
  • "vagrant up" failing: Vagrant VM failed to remain in the running state
  • ftsearch returning empty docs
  • What are the advantages of setting "hive.exec.parallel" to false in Hive ?
  • Creating a root certificate in FiddlerCore
  • How to access app.config in a blueprint?
  • DB2 RECORDSET table name converted to uppercase
  • shadow
    Privacy Policy - Terms - Contact Us © ourworld-yourmove.org