Mateen Ahmed

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Tuesday, 28 May 2013

use yum to download a package without installing it?

Posted on 00:53 by Unknown


yum-downloadonly is a plugin which can be used to download packages from RHN or a configured yum repository without installing the package. Check the contents of the /etc/yum/pluginconf.d/downloadonly.conf file and make sure this plugin is enabled:


[main]
enabled=1


Please confirm package yum-downloadonly has been installed on the system for RHEL 5 or yum-plugin-downloadonly for RHEL 6. If not, this package is available on the Red Hat Network (RHN). If the system has been registered to the Red Hat Network, install the yum-downloadonly package with the following command on RHEL 5:


# yum install yum-downloadonly
and for RHEL 6:
# yum install yum-plugin-downloadonly

For example

# yum install --downloadonly vsftpd --- it will download vsftpd
Is this ok [y/N]: y Downloading Packages: (1/1):

vsftpd-2.0.5-12.el 100% |=========================| 138 kB 00:02
exiting because --downloadonly specified

Note:--The package, by default, is saved in directory /var/cache/yum/

if you want to specify your own folder then  --downloaddir with --downloadonly to yum, to specify an alternate directory to store packages:
#yum install --downloadonly --downloaddir=/tmp vsftpd











Read More
Posted in | No comments
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • Linux Kernel /etc/sysctl.conf
    /etc/sysctl.conf can be a powerful way of changing kernel settings at run-time. If you have sysctl.conf support compiled into your kernel, y...
  • Domain name formulation
    The right-most label conveys the top-level domain; for example, the domain name  www.example.com  belongs to the top-level domain com. The h...
  • How To Add a non-login User in Linux so that he/she doesn't have shell.
    useradd & usermod commands are used to add and modify the users in linux. When invoked without the -D option, the useradd command creat...
  • To Increase Networking Performance Network Stack (Buffers Size)
    By default the Linux network stack is not configured for high speed large file transfer across WAN links. This is done to save memory resour...
  • SVN Server on RHEL6
    Subversion (SVN) is a version control system initiated in 2000 by CollabNet Inc. It is used to maintain current and historical versions of f...
  • Types of NameServer
                                                            There are four primary nameserver configuration:    Master Server:  The primary mast...
  • Apache Security with SELinux
    Security with Apache is an important topic, of which SELinux is a part. The reason for discussing SELInux at this point is so that you have ...
  • How do I hide the Apache version number under Linux server?
    You can easily hide Apche (httpd) version number and other information. There are two config directives that controls Apache version. The S...
  • Configuring ssh Server
                                                          SSH SERVER CONFIGURATIONS ssh command is a client remote login program to connect remo...
  • TOP - Process Activity Command
    The top program provides a dynamic real-time view of a running system i.e. actual process activity. By default, it displays the most CPU-int...

Blog Archive

  • ▼  2013 (19)
    • ►  July (1)
    • ►  June (6)
    • ▼  May (1)
      • use yum to download a package without installing it?
    • ►  April (11)
  • ►  2012 (12)
    • ►  December (11)
    • ►  November (1)
Powered by Blogger.

About Me

Unknown
View my complete profile