Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 12-22-2007, 04:32 AM   #1
LQ Newbie
Registered: Dec 2007
Posts: 4

Rep: Reputation: 0
pkgtool: remove won't work

so when i open up pkgtool and go down to "remove" and hit enter, it goes directly to a screen that says:

The packages have been removed. A
complete log of the files that
were removed has been created in

No such package: /var/log/setup/tmp/rmscript:. Can't remove.
No such package: line. Can't remove.
No such package: 1:. Can't remove.
No such package: /usr/bin/dialog:. Can't remove.
No such package: Argument. Can't remove.
No such package: list. Can't remove.
No such package: too. Can't remove.
No such package: long. Can't remove.
i googled this problem and found something at that looks very similar to my problem. however, it's in italian. i used but i couldn't really make any sense of it. also, in that thread, it looks like the guys "removepkg" function doesn't work. mine does. so maybe it's different.

i've been using linux for about 4 days now, so i'm pretty new to it, but i am gaining a much bigger understanding of it and like to think that i'm pretty good with computers.

any help would be greatly appreciate.

thank you,
Old 12-22-2007, 08:33 AM   #2
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,237
Blog Entries: 29

Rep: Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437

excerpt from;
:~# man pkgtool
Formatting page, please wait...
pkgtool [ -sets #a#b#c# ] [ -source_mounted ] [ -ignore_tagfiles ] [
-tagfile tagfile ] [ -source_dir directory ] [ -target_dir directory ]
[ -source_device device ]

pkgtool is the standard package maintenance tool provided with the
Slackware Linux distribution. It allows the user to install, remove,
or view software packages through an interactive menu system. Pkgtool
can also be used to re-run the menu-driven scripts normally executed at
the end of a Slackware installation. This is useful for doing basic
reconfiguration (like changing the mouse type).

Most users will not want to use any options when running pkgtool.
These are generally used only when pkgtool is run during the initial
system installation. Feel free to try them, but be careful.
What packages have you installed as user that you want to remove? If system packages then you must be root to remove anything. You can use 'su' or setup your 'sudo'.

SU(1) SU(1)

su - change user ID or become super-user

su [-] [username [args]]

su is used to become another user during a login session. Invoked with-
out a username, su defaults to becoming the super user. The optional
argument - may be used to provide an environment similiar to what the
user would expect had the user logged in directly.

Additional arguments may be provided after the username, in which case
they are supplied to the user´s login shell. In particular, an argument
of -c will cause the next argument to be treated as a command by most
command interpreters. The command will be executed by the shell speci-
fied in /etc/passwd for the target user.

The user will be prompted for a password, if appropriate. Invalid pass-
words will produce an error message. All attempts, both valid and
invalid, are logged to detect abuses of the system.
As you can see from the above the 'su' should be used with caution. Allows you to become another user but you will need to know the password of that user. Be root or anyone else.

You should use 'man' to find out about commands. You could look at Linux Newbie Admin Guide to get a good reference.

You could also reference 'Slackware-Links'
Old 12-22-2007, 10:43 PM   #3
LQ Newbie
Registered: Dec 2007
Posts: 4

Original Poster
Rep: Reputation: 0
i'm pretty sure i already was root, because i can't even start pkgtool if i'm not root.

i think i might have something to do with installing gnome. i was trying to get it to work from gnome slackbuild, but it was going crazy so i uninstalled it and now pkgtool works fine.

thanks for the help though.
Old 12-23-2007, 04:07 AM   #4
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,891

Rep: Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569
I saw someone reporting this problem awhile back -exactly after installing gnome. It's not a problem with gnome, but that the list of packages is too long. If you 'decode' the error message it gave you taking just the second field:
/var/log/setup/tmp/rmscript: line 1: /usr/bin/dialog: Argument list too long. I supposed that the problem had been addressed as it seemed that it might begin to show up even with a standard installation (now that X is nearly 300 packages).
Yeah, I just found the thread here:

There is a link to a patch but the link is incorrect. Here's the corrected link to the patch:

I haven't checked to see if this actually works so proceed at your own risk.

Last edited by gnashley; 12-23-2007 at 04:10 AM.
Old 12-23-2007, 04:13 AM   #5
LQ Newbie
Registered: Dec 2007
Posts: 4

Original Poster
Rep: Reputation: 0
i see. well thanks. i'll keep that in mind.

Old 12-23-2007, 05:21 AM   #6
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Get pkgtool from current. It's already fixed.


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
pkgtool doesn't work anymore after upgrade... Necronomicom Slackware 1 03-26-2007 03:55 PM
apt-get remove doesn't work Yukon Linux - General 5 12-11-2006 12:40 AM
pkgtool does not work M$ISBS Slackware 2 06-01-2006 09:45 PM
can't remove packages with pkgtool PunkPT Slackware 8 08-06-2004 12:38 PM
removing xawtv pkgtool doesn´t see it, how else can I remove it? jimdaworm Slackware 4 09-29-2003 03:10 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:25 PM.

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