LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-25-2011, 07:30 PM   #1
Kaboosh
LQ Newbie
 
Registered: Feb 2005
Location: Edmonton, AB
Distribution: PCLinuxOS
Posts: 19

Rep: Reputation: 0
What RPM Macro Corresponds to "Mark for Complete Removal" in Synaptic?


I'm packaging some software in PCLinuxOS and I'd like to remove users when the "Mark for Complete Removal" option is selected in Synaptic (as opposed to the basic "Mark for Removal"). What are the semantics of this option in relation to a specfile? Does one run the %postun macro whereas the other doesn't? Does complete removal have it's own macro for a script to run when this is selected? Is a variable set telling you that it's a "complete" uninstall?
 
Old 03-25-2011, 08:47 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,900
Blog Entries: 27

Rep: Reputation: 4675Reputation: 4675Reputation: 4675Reputation: 4675Reputation: 4675Reputation: 4675Reputation: 4675Reputation: 4675Reputation: 4675Reputation: 4675Reputation: 4675
I don't think this answers your question, but Synaptic is a graphical frontend for apt, so it would call the appropriate apt commands.

According to this Wikipedia article, the closest thing to a spec file in a Debian package seems to be the dsc file.
 
Old 03-26-2011, 05:34 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
Quote:
Originally Posted by Kaboosh View Post
I'd like to remove users when the "Mark for Complete Removal" option is selected in Synaptic (as opposed to the basic "Mark for Removal").
I hope you mean system user accounts, right? If so then you should only remove that system user account the package has added in the %pre or %post stage.


Quote:
Originally Posted by Kaboosh View Post
What are the semantics of this option in relation to a specfile? Does one run the %postun macro whereas the other doesn't? Does complete removal have it's own macro for a script to run when this is selected? Is a variable set telling you that it's a "complete" uninstall?
If the first argument to %postun is zero then this means remove the package completely (as opposed to remove and upgrade):
Code:
%postun
case "$1" in
0) # Final removal, not upgrade:
   # I. Ensure the service is stopped.
   # II. Kill stubborn processes.
   # III. Run userdel before groupdel.
   doSomething;;
*) # Value is 1: upgrade.
   continue;;
esac
 
1 members found this post helpful.
Old 03-26-2011, 05:34 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,329

Rep: Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583
PCLinuxOS uses "apt for rpm". Is different from the Debian apt.

http://en.wikipedia.org/wiki/APT-RPM

http://www.google.com/webhp#sclient=...cf11f17933379c
 
1 members found this post helpful.
Old 03-26-2011, 07:16 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,900
Blog Entries: 27

Rep: Reputation: 4675Reputation: 4675Reputation: 4675Reputation: 4675Reputation: 4675Reputation: 4675Reputation: 4675Reputation: 4675Reputation: 4675Reputation: 4675Reputation: 4675
Quote:
Originally Posted by knudfl View Post
PCLinuxOS uses "apt for rpm". Is different from the Debian apt.
Thanks.
 
  


Reply

Tags
postun


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"bad tty" & "file descriptor error" while building RPM on F13 gosssamer Linux - Software 7 12-28-2010 06:02 PM
What is the meaning of using "__KERNEL__" and "MODULE" macro? nithima Linux - Newbie 1 10-18-2010 09:26 PM
unique password for "update" and "synaptic" and "apt-get" SaintDanBert Linux - Security 1 09-17-2010 05:53 AM
Synaptic: "removal" vs. "complete removal" newbiesforever Linux - Software 2 08-24-2008 09:31 PM
Synaptic Gui ver on Suse 10.0 - error message : "command synaptic not found" suse2166 Linux - Newbie 6 04-04-2006 02:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration