FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 04-09-2008, 05:08 PM
"Joseph L. Casale"
 
Default Yum equivalent of rpm -i --test

How does one do this? Reading through the man pages for yum it doesn't look like its possible? I could use rpm, but I was hoping to pull down deps through yum automagically.

Thanks!
jlc
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 04-09-2008, 07:33 PM
Wojtek Pilorz
 
Default Yum equivalent of rpm -i --test

On Wed, Apr 09, 2008 at 11:08:15AM -0600, Joseph L. Casale wrote:
> How does one do this? Reading through the man pages for yum it doesn't look like its possible? I could use rpm, but I was hoping to pull down deps through yum automagically.
>
> Thanks!
> jlc
For CentOS5, you could use yum-downloadonly plugin :
# rpm -qi yum-downloadonly [ output shortened ]
Name : yum-downloadonly Relocations: (not relocatable)
Group : System Environment/Base Source RPM: yum-utils-1.0.4-3.el5.centos.2.src.rpm
URL : http://linux.duke.edu/yum/download/yum-utils/
Summary : Yum plugin to add downloadonly command option
Description :
This plugin adds a --downloadonly flag to yum so that yum will only download
the packages and not install/update them.

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 04-09-2008, 07:43 PM
"Joseph L. Casale"
 
Default Yum equivalent of rpm -i --test

>For CentOS5, you could use yum-downloadonly plugin :

Wojtek,
Will this still allow rpm to "--test" the install of a local rpm and pull in the deps and simulate the install?

Thanks!
jlc
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 04-10-2008, 09:55 AM
Wojtek Pilorz
 
Default Yum equivalent of rpm -i --test

On Wed, Apr 09, 2008 at 01:43:45PM -0600, Joseph L. Casale wrote:
> >For CentOS5, you could use yum-downloadonly plugin :
>
> Wojtek,
> Will this still allow rpm to "--test" the install of a local rpm and pull in the deps and simulate the install?

When you have the plugin installed and enabled it will enable --installonly option in yum;

You can use it with yum shell also, e.g.

yum --installonly shell
> install gcc
> transaction
> run
> exit

Yum will check deps, download rpm files to yum cache directory as defined in yum config file.

You can then to whatever you want with the files, for example run rpm with options
you need on them.

>
> Thanks!
> jlc
You are welcome,

Wojtek

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 04-10-2008, 11:31 AM
Johnny Hughes
 
Default Yum equivalent of rpm -i --test

Joseph L. Casale wrote:

For CentOS5, you could use yum-downloadonly plugin :


Wojtek,
Will this still allow rpm to "--test" the install of a local rpm and pull in the deps and simulate the install?


Yum (in the default incarnation) requires that you press a "Y" for yes
to proceed with the transaction.


It will do all the dependency calcs and present a list of things needed,
but not install if you select NO.


Also, you can just use some of the yum switches to get a deplist ... like:

yum deplist <pkg_name>

or lastly, you can use reqoquery that is part of yum-utils (after
installing the yum-utils package, do man repoquery).


SO .. there is no dry run for yum specifically, but depending on what
you really want, there are several alternatives.


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 10:16 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org