You can uninstall it by typing "rpm -e story", without version and extension.
Main Topics
Browse All TopicsI am able to compile spec file and able to build rpm file.
But 2 rpm files are getting create at two different location . 1 in * /RPMS/x86pc/ folder and another in */SRPMS/ folder. I tried to execute both rpm files and getting different result for both rpm files.
Following is the output for both rpm files.
# cd /opt/sys/src/rpm/RPMS/x86p
# rpm -Uv story-1.0-1.x86pc.rpm
error: LOOP:
error: removing story-1.0-1.x86pc "Requires: /opt/Story" from tsort relations.
Preparing packages for installation...
error: Install/Erase problems:
package story-1.0-1.x86pc is already installed
# cd ..
# cd ..
# pwd
/opt/sys/src/rpm
# ls
. BUILD SOURCES SRPMS
.. RPMS SPECS
# cd SRPMS/
# rpm -Uv story-1.0-1.src.rpm
Preparing packages for installation...
story-1.0-1.src
#
When i use #rpm -qa command it gives output "story-1.0-1.x86pc.rpm"
But when i tried to uninstall with #rpm -e story-1.0-1.x86pc.rpm. i am getting output "error: package story-1.0-1.x86pc.rpm is not installed".
Please help me to resolve this issue.
Attached is the output of building rpm file from spec file.
Thanks in advance
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
> But 2 rpm files are getting create at two different location . 1 in * /RPMS/x86pc/ folder and another in */SRPMS/ folder. I tried to execute both rpm files and getting different result for both rpm files.
As said in http://www.experts-exchang
> error: LOOP:
> error: removing story-1.0-1.x86pc "Requires: /opt/Story" from tsort relations.
If "MyrpmTest7.spec" still contains the "%dir /" and "%dir /opt" lines in the %files section then remove those lines, rebuild the RPM, run 'rpm -e --justdb story', then 'rpm -i story-1.0-1.x86pc.rpm'.
1. I removed "%dir /" and "%dir /opt" lines in the %files section. build rpm file and tried to execute following command.
# rpm -e --justdb story
error: LOOP:
error: removing story-1.0-1.x86pc "Requires: /opt/Story" from tsort relations.
PLEASE LET ME KNOW WHY THIS ERROR OCCURRESS
2. I tried to following command . I guess it is correct.
# rpm -i story-1.0-1.x86pc.rpm
# rpm -i story-1.0-1.x86pc.rpm
error
package story-1.0-1.x86pc is already installed
# rpm -i story-1.0-1.x86pc.rpm
error
package story-1.0-1.x86pc is already installed
Here is the content of spec file. I tried to build "rpm file" from attached "spec file" with following command and following the output during execution. i believe output is not as per expectation.
spec file is in attchment.
output of building rpm from spec file is also in attchment as image file . i marked error in image with red color please help me to reomve red color mark.
The "mktemp: cannot execute" error in /opt/sys/lib/rpm/check-fil
! Posting a JPEG image is OK, but next time please *also* attach the .rpm.tmp file like you did previously.
1. "/tmp" folder is present
2. I tried to create test file in "/tmp" folder and tried to write inside that file. This i am able to do. This means i have right to /tmp folder.
Following is the result after export command. But i am not sure with rpm.tmp you need because in output it shows 3 tmp files(rpm-tmp.12308
, rpm-tmp.29147 and rpm-tmp.30055) but no file is present in this folder "/opt/sys/var/tmp/ "
# export TMPDIR=/opt/sys/var/tmp
# rpm -ba MyrpmTest7.spec
Executing(%
+ umask 022
+ cd /opt/sys/src/rpm/BUILD
+ cd /opt/sys/src/rpm/BUILD
+ rm -rf story-1.0
+ /bin/mkdir -p story-1.0
+ cd story-1.0
+ cp -c /opt/sys/src/rpm/SOURCES/P
+ cp -c /opt/sys/src/rpm/SOURCES/O
+ cp -c /opt/sys/src/rpm/SOURCES/M
+ exit 0
Executing(%install): /bin/sh -e /opt/sys/var/tmp/rpm-tmp.2
+ umask 022
+ cd /opt/sys/src/rpm/BUILD
+ /bin/rm -rf /opt/sys/var/tmp/story-roo
+ /bin/mkdir -p /opt/sys/var/tmp/story-roo
+ cd story-1.0
+ echo Done 1
Done 1
+ mkdir -p /opt/sys/var/tmp/story-roo
+ cp -c Prog.txt /opt/sys/var/tmp/story-roo
+ cp -c Oste.txt /opt/sys/var/tmp/story-roo
+ cp -c Manoj.txt /opt/sys/var/tmp/story-roo
+ exit 0
Processing files: story-1.0-1.x86pc
Checking for unpackaged file(s): /opt/sys/lib/rpm/check-fil
/opt/sys/
/opt/sys/lib/rpm/
/opt/sys/lib/rpm/
sed: Couldn't close {standard output}
/opt/sys/lib/rpm/ch
diff: : No such file or directory
diff: : No such file or directory
rm: Must specify file[s] for removal.
rm: Must specify file[s] for removal.
Wrote: /opt/sys/src/rpm/SRPMS/sto
Wrot
Executi
+ umask 022
+ cd /opt/sys/src/rpm/BUILD
+ cd story-1.0
+ /bin/rm -rf /opt/sys/var/tmp/story-roo
#
PLEASE HELP ME TO RESOLVE THIS ISSUE.
Business Accounts
Answer for Membership
by: palhadePosted on 2009-08-19 at 09:34:48ID: 25134589
I guess i need to use following command to install from rpm
# rpm -Uv story-1.0-1.x86pc.rpm
But i am getting following error message after executing above command
# rpm -Uv story-1.0-1.x86pc.rpm : LOOP:
error
error: removing story-1.0-1.x86pc "Requires: /opt/Story" from tsort relations.
Preparing packages for installation...
error: Install/Erase problems:
package story-1.0-1.x86pc is already installed
# cd ..
PLEASE HELP ME TO REMOVE ABOVE ERRORS
Also
When i use following command
#rpm -qa command
I am getting output "story-1.0-1.x86pc.rpm"
But when i tried to uninstall with #rpm -e story-1.0-1.x86pc.rpm. i am getting output "error: package story-1.0-1.x86pc.rpm is not installed".
Please help me to resolve this issue.
Thanks in advance