Hello, I've just noticed that the file /etc/ha.d/resource.d/drbddisk, which belongs to package drbd-8.0.6-1.el5.centos, is missing from one of my test machines: # rpm --verify drbd S.5....T c /etc/drbd.conf missing /etc/ha.d/resource.d/drbddisk I'm looking at this as an opporunity to learn something about RPM which bugged me for a while - in Debian, aptitude and apt-get provide options to re-install existing package without removing it. If I understand this correctly, then "rpm -i --force drbd-8.0.6-1.el5.centos.rpm" would re-install the package. Is this correct? The rpm solution would require me to find and manually download the rpm file. Is there a way to do this through yum? Thanks, --Amos
Nicolas Thierry-Mieg
2007-Dec-07 09:46 UTC
[CentOS] re-installing a package without removing it?
Amos Shapira wrote:> Hello, > > I've just noticed that the file /etc/ha.d/resource.d/drbddisk, which > belongs to package drbd-8.0.6-1.el5.centos, is missing from one of my > test machines: > > # rpm --verify drbd > S.5....T c /etc/drbd.conf > missing /etc/ha.d/resource.d/drbddisk > > I'm looking at this as an opporunity to learn something about RPM > which bugged me for a while - in Debian, aptitude and apt-get provide > options to re-install existing package without removing it. > > If I understand this correctly, then "rpm -i --force > drbd-8.0.6-1.el5.centos.rpm" would re-install the package. Is this > correct? > > The rpm solution would require me to find and manually download the > rpm file. Is there a way to do this through yum?you can always "yum install synaptic" and do your stuff with synaptic/apt (it's in rpmforge) that's the only thing I ever use yum for ;-)
Ignacio Vazquez-Abrams
2007-Dec-11 10:44 UTC
[CentOS] re-installing a package without removing it?
On Fri, 2007-12-07 at 11:54 +1100, Amos Shapira wrote:> I'm looking at this as an opporunity to learn something about RPM > which bugged me for a while - in Debian, aptitude and apt-get provide > options to re-install existing package without removing it. > > If I understand this correctly, then "rpm -i --force > drbd-8.0.6-1.el5.centos.rpm" would re-install the package. Is this > correct? > > The rpm solution would require me to find and manually download the > rpm file. Is there a way to do this through yum?Not as described, although you can use yumdownloader in yum-utils to pull down the package, and a plugin can be written for yum that allows this. -- Ignacio Vazquez-Abrams <ivazqueznet at gmail.com> PLEASE don't CC me; I'm already subscribed -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20071211/b618bbd9/attachment-0003.sig>