General :: Downgrade And Remove Rpms In The Same Command?

Mar 22, 2011

I have a problem where in order to satisfy RPM dependencies, I need to remove packages and downgrade them in the same command. Imagine the following situation Before

A v2.0 depends on B,C
B v2.0 depends on C > 1.0
C v1.1

After

A v1.0 depends on C
C v 1.0

If I issue a

$ rpm -Uvh --oldpackage Av1.0.rpm Cv1.0.rpm

it will fail with "B depends on C > 1.0" If I issue a

$ rpm -e B

it will fail with "A requires B" so I appear to be in a catch-22. The obvious solution is to use a "--nodeps" and remove B before doing the downgrade, but I am creating these commands programmatically so I was hoping to use dependency resolution as a sanity check against an incorrect script. Is there any way to perform this downgrade without breaking the RPM dependency sanity checks by force?

View 2 Replies


ADVERTISEMENT

General :: Command To Get Source ( Full HTTP/FTP ) Path Of 'Installed' RPMs?

Jul 17, 2010

Is there a command to know " From where a specific RPM package was downloaded & installed ( The full HTTP/FTP path ) " ? For example, if I had previously installed Firefox from here [URL] is there a specific rpm query, or any other place, from where I can get the full ftp path back.

View 1 Replies View Related

General :: Bash Command To Remove Spaces

Sep 14, 2010

I am reading the output of /proc/acpi/thermal_zone/ATF0/temperature in a program to read my CPU temp. I am using cat like the following:

Code:
#cat /proc/acpi/thermal_zone/ATF0/temperature
temperature: 49 C

I basically want to get rid of the spaces in between temperature and the actual temperature. Is there a command I can pipe the cat output to, to remove the spaces. I have seen suggestions for sed, or tr, but for some reason I cannot get them to work properly.

View 14 Replies View Related

General :: Remove Words In A File Using Sed Or Any Other Command?

Nov 30, 2009

i want to remove words "Max" and "constrained" in a file given below:

Max 0.003745 constrained
Max 0.004549 constrained
Max 0.001689 constrained

[code]....

and further want to replace "Max" by line number so that i can plot the resulting file. i searched in forum, but couldn't do what i wanted to do. e.g. i used

1)grep command

grep -v "Max" inputfile >outputfile

deletes whole line,and hence whole text.

2) sed command

cat inputfile |sed 's/ .{1,12} //g' >outputfile

gives output

0.003745constrained
0.004549constrained
0.001689constrained

[code]....

View 4 Replies View Related

General :: Pr Command How To Remove Page Numbering

Mar 26, 2010

When using the pr command for formatting simple text files for printing, page numbers are included in the header by default. I figured out how to remove the date from the header (pr -D ""), and how to remove the title (pr -h ""), but for the life of me I can't figure out how to remove page numbering from the header. Anybody know how/if this can be accomplished?

View 1 Replies View Related

General :: Route Command - Remove Iapddress

Jan 24, 2011

I am using this command for blocking some ipaddress. but now i want to remove iapddress. when i try # route delete 64.126.45.122 SIOCDELRT: No such process

View 1 Replies View Related

General :: Script Or Command To Find And Remove All KDE Traces From /usr/bin/?

May 2, 2011

1. Find everything that belongs to KDE in /usr/bin/

2. Show me what it is

3. (Give me an option to) delete it

A note about what did not remove mentioned;

Code:

apt-get remove kde --purge
apt-get autoremove

View 1 Replies View Related

General :: Bash Command Needed To Remove Failed Install?

May 11, 2010

An app failed to load properly and now i'm stuck in a sequence I don;t understand the solution for.

sudo apt-get autoremove

dpkg was interupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

View 1 Replies View Related

General :: Del Command To Remove Files To Directory Instead Of Completely Deleting Them?

Dec 2, 2010

how to write a script so that when I use the 'del' command it removes/sends the files / folders to a I specify for example 'dustbin'

View 1 Replies View Related

General :: Shell Script Or Command To Remove PDF File From Large Logs?

Jul 13, 2011

I need to remove a large binary file(PDF file) from a large log file which is generated daily.This is seriously hogging space on our servers.I need to remove the large PDF from the logs to make the logs smaller and manageable

I need to take out the texts (or binary file) between the strings

<my:PDF> and </my:PDF>
<applicationForm> and </applicationForm>
<image> and </image>
<extractedSignature> and </extractedSignature>

I am not sure whether sed utility can do this, these are large files and need to be pruned .I am not seeking logrotation advice just a script or command that can strip these large logs of texts between the characters above . I am not sure how to do this.These files are rather large.I am not sure how to achieve this with sed , tail, head , tr or any other facility .

View 2 Replies View Related

General :: Close/remove Message Queues Without Software Or Mq_close / Mq_unlink Command?

Jan 17, 2011

i am working on a project that uses message queues. i am able to successfully create them and they are working fine. now the problem is to close/remove message queues without software or mq_close / mq_unlink command. earlier when i worked on rh9, there is ipcs utility. we use ipcs to see all the existing message queues and ipcrm to remove them. however ipcs is not working for message queues in RHEL 5.3. Neither ipcs shows the exisiting message queues and neither we are able to use ipcrm. Plz guide to close/remove the queues with ipcs or any other command/utility from shell itself.

View 1 Replies View Related

General :: Possible To Install RPMs In Qemu?

Aug 28, 2010

Can we install packacges/rpms for example in qemu?

View 2 Replies View Related

General :: Rpm Needs To Install First In A List Of RPMS?

Jan 24, 2011

I have a custom made rpm. I need to install my particular RPM in a list of rpms which are part of a program. Say I have around 20 patch rpms which needs to be installed I need to install this through yum command. My particular RPM namely Patch-list.1.1.1.2-1.noarch.rpm needs to be installed as the first rpm in the total list of 21 rpms. I can modify my spec files and Makefiles as per my wish. what needs to be changed so that my rpm Patch-list.1.1.1.2-1.noarch.rpm will be installed first.

View 2 Replies View Related

General :: Finding Rpms For Red Hat 8 Kernel Ver. 2.4.18-14?

Feb 24, 2010

I need to set up auditing on an old RHL 8.0 server running kernel version 2.4.18-14 but I can't seem to find an archive with the rpm for that version of Red Hat.

View 1 Replies View Related

General :: Downloading Source RPMs - Fedora SRC

Apr 19, 2011

Using yum installs the binary version of the software. Is it possible to use yum to download the src rpms , because i have seen one repo called Fedora src. I am using Fedora 11.

View 5 Replies View Related

General :: Make An Environmental Variable RPMS?

Apr 1, 2011

I'm trying to make an environmental variable RPMS that will resolve to a website. I know I have to make the changes in .bash_profile, but all the things I try don't seem to want to work.

I've tried:
PATH=$RPMS:ftp://rha-server/pub/os/rhel5/Server/
or simply just making the variable itself
$RPMS=ftp://rha-server/pub/os/rhel5/Server/

The second one made a variable just fine, but when I attempted to run this command:

rpm -ihv $RPMS/caching-nameserver*

View 5 Replies View Related

General :: How To Install CentOS With Lesser RPMs?

Jan 30, 2010

I have been challenged to install CentOS occupying just 200 MB. As for now, I installed the OS with only first CD.

Just put :

@core

under %package directive in ks.cfg. I can see the space as of now is:

Code:

# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 13G 740M 12G 9% /
/dev/sda1 99M 12M 83M 12% /boot
tmpfs 125M 0 125M 0% /dev/shm

I need to make it to atleast 300MB.I can see those RPM lying in Linux Box:

Code:

df -hyum remove 389*df -hyum remove *ldap*df -hrpm -qa --qf '%11{SIZE} %{NAME}
' | sort -k1n
0 basesystem
0 filesystem

[code]...

I will remove java, selinux-* but what other package I can remove.

Note: I dont need any application to run but just bare OS.

View 1 Replies View Related

General :: Building RPMs From Compiled Source?

Jan 13, 2011

I already have compiled the source and I want to make an rpm. What do i do with it? Can i utilize the make file?

View 1 Replies View Related

General :: Use A Dbms To Store Rpms Instead Of File System?

Jan 5, 2010

Im trying to use a DBMS to store rpms for been reach by YUM, what I need to know is how to generate the repomd.xml and make it point to my dbms using href like [URL]...

View 1 Replies View Related

General :: Shell Script To Check If Rpms Is Installed Or Not?

May 1, 2010

i have a input text file contain 10 rpms and they are old versions i need a shell script to check if these rpms is installed or not and if the newer version is installed and i need all the results in one output text file contain every rpm and its condition ( the same) or (new )or( not installed)

View 3 Replies View Related

General :: Why Does RHEL Server Contain Rpms For Both The I386 And X86_64 Platforms

Feb 25, 2010

For RHEL 5.4,
# uname -r
2.6.18-164.11.1.el5
# uname -m

[code].....

show some "duplicate" rpms, one for the i386 and one for the x86_64 platform?

For example,

aspell-0.60.3-7.1.i386
aspell-0.60.3-7.1.x86_64

There are numerous other "dups" like that. Is this normal?

View 1 Replies View Related

General :: Where To Find The Rpms For OpenMP For SciLinux 5.5 For64bit Computing

May 3, 2011

Where can I find the rpms for OpenMP for SciLinux 5.5 for64bit computing?

View 3 Replies View Related

General :: Finding A Method That Is In Between A Package Manager But Not Adding RPMs Manually

Nov 9, 2010

Desperation has set in and hence you get to view a thread with this title. I think the title explains it all. Or, what can be done when packages are no longer available through the repository but installing them from RMP is boarder line crazy.

View 8 Replies View Related

General :: Downgrade 10.10 To 10.04 Without Reinstalling OS?

Nov 30, 2010

Is there any way to downgrade 10.10 to 10.04 without reinstalling linux?

View 2 Replies View Related

General :: Downgrade JRE's Version In Ubuntu?

May 13, 2010

currently I am having jre 1.6.0_20 i want to downgrade it to jre 1.6.0_17 ? how can I downgrade?I'm using Ubuntu 10.04 LTS

View 1 Replies View Related

General :: Downgrade/alternate Install Gcc-3.0.1 In Fedora 10?

Feb 12, 2010

I am trying to install ns-allinone-2.26 & nrlsensorsim. But it gets failed. When i explorer the problem, i found that only gcc problem in fedora 10. So i tried installing gcc-3.0.1.tar.gz but it gets failed during "make". So please guide me to overcome this problem. give me steps either to downgrade or to install alternate gcc version (gcc-3.0.1 or gcc-everything-2.95.tar.gz)

View 2 Replies View Related

General :: Downgrade Gcc-version To Compile Mex-files For Matlab - Permission Denied

Feb 22, 2010

I am trying to run matlab 7.7 (R2008b) on my ubuntu 9.10 distribution..the thing is that I am totally new with both matlab and linux and I get the following error message from matlab when I try to run an example mex-function:

>> mex yprime.c
/home/margareta/Desktop/matlab/bin/mex: 1572: gcc: Permission denied

Warning: You are using gcc version "". The earliest gcc version supported with mex is "4.0.0". The latest version tested for use with mex is "4.2.0". To download a different version of gcc, visit [URL] eval: 1: gcc: Permission denied mex: compile of ' "yprime.c"' failed. Error using ==> mex at 213 Unable to complete successfully.

I had gcc-4.4 as default on my pc, so after this error I downloaded an older version (gcc-4.1) and removed with rm the symbolic link in /usr/bin pointing to gcc-4.4 and created a new one pointing to gcc-4.1. Now when I type gcc -v in the terminal it says that gcc is in the packages gcc and pentium-builder, to do an apt-get install. I tried that but than it says that gcc-4.1 is already the newest version. It seems that I have multiple versions of gcc installed but neither the terminal nor matlab can find them.

View 10 Replies View Related

General :: Find Out A List Of RPMs Installed Using "force" Option?

Apr 12, 2011

I'm just wondering if there is an easy way I can generate a list of RPM packages which have been forcefully installed on the system (got a couple of servers transitioned).

All servers are RedHat-5 if that matters.

View 1 Replies View Related

General :: Getting All RPMs By 'yum Install Pkg1 Pkg2 Pkg3' To Install On Offline System ?

Jun 12, 2011

I need to somehow do a yum installation (or equivalent of) on a system that is offline with no access to the internet. (I do have access to another Linux system that has internet access, but the Linux installations on both systems have different packages installed and enabled.)

Let's say the command to enter is 'yum install pkg1 pkg2 pkg3' (the documentation for some applications I need indicate the installation instructions this way, and not as the actual RPMs I need). Is there a way for me to run that on my offline system?

e.g. one way I can think of is to run that command on the online system, somehow if possible take note of what RPMs get installed, then transfer them to the offline system via USB and install all the RPMs via rpm command.

The problem with my above idea is that the two systems have different packages enabled, so even if yum on the online system shows a few dependencies being downloaded, I could run download and install all these RPMs and their dependencies on the offline system only to find several more missing dependencies, and dependencies of those dependencies.

View 10 Replies View Related

Debian :: Remove All Of Kde In One Command?

Jan 29, 2010

How do I remove all of kde in one command except for the kde packages that I have installed before doing apt-get install kde?

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved