Sponsored Content
Operating Systems AIX Uninstall a relocatable package Post 302313542 by vibhor_agarwali on Wednesday 6th of May 2009 03:05:01 AM
Old 05-06-2009
Uninstall a relocatable package

Hi,

If a package has been installed at normal location:
installp -u <package_name>
uninstalls the package

However, if that has been installed relocatable, the above command fails.
It requires the relocatable path as the parameter
installp -R <relocation_path> -u <package_name>

To find the relocation path, i have to give:
lslpp -R ALL -l <package_name>
Check from here where the package has been installed and then add the path to the "installp -u" command.

I want to automate the uninstallation of a package. This fails if the package has been installed relocatably.

How do i get around this?

Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

uninstall and install a package

Hi, on Red Hat Enterprise Linux AS release 3 (Taroon). How can I : 1-install a package (exemple : compat-gcc-7.3-2.96.128.src.rpm) 2-uninstall (or delete or deinstall) a package (exemple : compat-gcc-7.3-2.96.122). Many thanks before. (6 Replies)
Discussion started by: big123456
6 Replies

2. Solaris

Perl - How to uninstall? Will pkgrm uninstall all versions?

Hello, I'm working on a Solaris 9/Sparc machine and it has the Solaris 10 version of Perl (5.8.8) installed on it, which always requires all kinds of library files that Solaris 9 doesn't come with. I think the best way to do is to uninstall this wrong version and install the correct Solaris 9... (1 Reply)
Discussion started by: alanlh
1 Replies

3. Solaris

Unable to uninstall package in Solaris

I am getting the below mentioned error while trying to unistall a package from a 2.8 Solaris box. Please help.. pkgrm: ERROR: unable to determine current run-state Removal of <PDMgr> failed (internal error). No changes were made to the system. (1 Reply)
Discussion started by: chrisanto_2000
1 Replies

4. Solaris

install and uninstall package

I'm a newcomer for Solaris. I tried to install Net::FTP package ( a tool perl ) on our sun server 5.9. We used the below command: /usr/bin/perl MakeFilePL make make install How can I uninstall this package ? (1 Reply)
Discussion started by: anhtt
1 Replies

5. Linux

relocatable kernel

Hi, Is relocatable feature available in SLES? If it is can anyone please tell me the kernel version.. ~Nayana. (0 Replies)
Discussion started by: nayana
0 Replies

6. Linux

Find installed location of a relocatable package

Hi, I am finding the installed location of a package by: rpm -qi <package_name> And then parse the string "Relocations". If i relocate this package during installation with --relocate option , the "Relocations" string still shows the old value. Though the package has been installed on the... (0 Replies)
Discussion started by: vibhor_agarwali
0 Replies

7. AIX

AIX relocatable package help

Hi, I have created a relocatable AIX package named Test. The USIL is /abc bash-2.05b# lsusil INSTALL PATH = /abc COMMENTS = None Generally if a package gets installed in "/opt/Test" and i want to relocate it to "/abc" it gets installed under "/abc/Test". This happens the way in Solaris,... (2 Replies)
Discussion started by: vibhor_agarwali
2 Replies

8. Solaris

how to uninstall the package help

hi i installed wine1.1.2-sol11-i386.pkg.bz2 but wine doesnt work error err:process:start_wineboot failed to start wineboot, err 1359 how can i uninstall that package and how can i fix that error (2 Replies)
Discussion started by: ect1
2 Replies

9. UNIX for Dummies Questions & Answers

Relocatable code, Etcetera

I was reading about ELF files and it has lead to Relocatable Code and also P.I.C. I have searched the net like never before and I can't find a whole lot of comprehensive/organized info on this topic. I really can't put together a decent enough question at this point. Is... (2 Replies)
Discussion started by: theKbStockpiler
2 Replies

10. UNIX for Dummies Questions & Answers

Can't install rpm package with --prefix in new path.Error: package is not relocatable

Hello, i have downloaded an rpm package "hadoop-0.20.205.0-1.amd64.rpm" in /usr/local/ directory. I'm trying to install the rpm package in a new path/location (/usr/local/hadoop-0.20.205), but i can't. I did: 1st try: Didn't work sudo rpm -i --prefix=/usr/local/hadoop-0.20.205... (1 Reply)
Discussion started by: g_p
1 Replies
DH_SYSTEMD_ENABLE(1)						     Debhelper						      DH_SYSTEMD_ENABLE(1)

NAME
       dh_systemd_enable - enable/disable systemd unit files

SYNOPSIS
       dh_systemd_enable [debhelperoptions] [--no-enable] [--name=name] [unitfile...]

DESCRIPTION
       dh_systemd_enable is a debhelper program that is responsible for enabling and disabling systemd unit files.

       In the simple case, it finds all unit files installed by a package (e.g.  bacula-fd.service) and enables them. It is not necessary that the
       machine actually runs systemd during package installation time, enabling happens on all machines in order to be able to switch from
       sysvinit to systemd and back.

       In the complex case, you can call dh_systemd_enable and dh_systemd_start manually (by overwriting the debian/rules targets) and specify
       flags per unit file. An example is colord, which ships colord.service, a dbus-activated service without an [Install] section. This service
       file cannot be enabled or disabled (a state called "static" by systemd) because it has no [Install] section. Therefore, running
       dh_systemd_enable does not make sense.

       For only generating blocks for specific service files, you need to pass them as arguments, e.g. dh_systemd_enable quota.service and
       dh_systemd_enable --name=quotarpc quotarpc.service.

FILES
       debian/package.service, debian/package@.service
	   If this exists, it is installed into lib/systemd/system/package.service (or lib/systemd/system/package@.service) in the package build
	   directory.

       debian/package.tmpfile
	   If this exists, it is installed into usr/lib/tmpfiles.d/package.conf in the package build directory. (The tmpfiles.d mechanism is
	   currently only used by systemd.)

       debian/package.target, debian/package@.target
	   If this exists, it is installed into lib/systemd/system/package.target (or lib/systemd/system/package@.target) in the package build
	   directory.

       debian/package.socket, debian/package@.socket
	   If this exists, it is installed into lib/systemd/system/package.socket (or lib/systemd/system/package@.socket) in the package build
	   directory.

       debian/package.mount
	   If this exists, it is installed into lib/systemd/system/package.mount in the package build directory.

       debian/package.path, debian/package@.path
	   If this exists, it is installed into lib/systemd/system/package.path (or lib/systemd/system/package@.path) in the package build
	   directory.

       debian/package.timer, debian/package@.timer
	   If this exists, it is installed into lib/systemd/system/package.timer (or lib/systemd/system/package@.timer) in the package build
	   directory.

OPTIONS
       --no-enable
	   Disable the service(s) on purge, but do not enable them on install.

	   Note that this option does not affect whether the services are started.  That is controlled by dh_systemd_start(1) (using e.g. its
	   --no-start option).

       --name=name
	   Install the service file as name.service instead of the default filename, which is the package.service. When this parameter is used,
	   dh_systemd_enable looks for and installs files named debian/package.name.service instead of the usual debian/package.service.

NOTES
       Note that this command is not idempotent. dh_prep(1) should be called between invocations of this command (with the same arguments).
       Otherwise, it may cause multiple instances of the same text to be added to maintainer scripts.

       Note that dh_systemd_enable should be run before dh_installinit.  The default sequence in dh does the right thing, this note is only
       relevant when you are calling dh_systemd_enable manually.

SEE ALSO
       dh_systemd_start(1), debhelper(7)

AUTHORS
       pkg-systemd-maintainers@lists.alioth.debian.org

11.1.6ubuntu2							    2018-05-10						      DH_SYSTEMD_ENABLE(1)
All times are GMT -4. The time now is 01:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy