diff --git a/lib/serverspec/type/package.rb b/lib/serverspec/type/package.rb
index <HASH>..<HASH> 100644
--- a/lib/serverspec/type/package.rb
+++ b/lib/serverspec/type/package.rb
@@ -14,6 +14,10 @@ module Serverspec
           backend.send(check_method, @name, version)
         end
       end
+
+      def version
+        backend.run_command(commands.get_package_version(@name))[:stdout].strip
+      end
     end
   end
 end
diff --git a/spec/redhat/package_spec.rb b/spec/redhat/package_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/redhat/package_spec.rb
+++ b/spec/redhat/package_spec.rb
@@ -107,3 +107,9 @@ describe package('App::Ack') do
   it { should be_installed.by('cpan').with_version('2.04') }
   its(:command) { should eq "cpan -l | grep -w -- \\^App::Ack | grep -w -- 2.04" }
 end
+
+describe package('httpd') do
+  let(:stdout) { "2.2.15\n" }
+  its(:version) { should eq '2.2.15' }
+  its(:command) { should eq "rpm -qi httpd | grep Version | awk '{print $3}'" }
+end
Add version method to package type for testing package version