Removepkg [OK]

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
Andyun
Posts: 456
Joined: 17. Jun 2010, 09:51
Location: Russia: Severodvinsk / Россия: Северодвинск

Removepkg [OK]

Post by Andyun »

If enter a command:

Code: Select all

removepkg *
, and in this folder there are files or folders named like the package, a package is removed.
Example:

Code: Select all

root[sft]# ls
mtpaint
root[sft]# removepkg *
Removing package mtpaint-3.31-i486-2gv...
root[sft]# 
It is normal?
Last edited by Andyun on 9. Jun 2012, 16:55, edited 1 time in total.
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Removepkg

Post by thenktor »

Yes.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: Removepkg

Post by zAchAry »

Latest 5 installed packages:

Code: Select all

$ cd /var/log/packages
$ ls -t -1 | head -n 5
Latest 5 un-installed packages:

Code: Select all

$ cd /var/log/removed_packages
$ ls -t -1 | head -n 5
Latest 5 deleted scripts:

Code: Select all

$ cd /var/log/removed_scripts
$ ls -t -1 | head -n 5
Image
Help to make Slackware easier Donate to Salix
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Removepkg

Post by Shador »

Andyun wrote:It is normal?
Yes, as thenktor already pointed out it is normal. It's the way bash substitution works. The asterix '*' is replaced by bash with all the file and directory names in the current working directory each separated by a space. Hidden files are per default skipped by the asterix.
So with a ls like this:

Code: Select all

$ ls -l
total 0
drwxr-xr-x 2 shador users 6 Oct  4 22:08 slapt-get
You would get the following command (after bash substituted the asterix):

Code: Select all

removepkg slapt-get
and that's a valid command which removes slapt-get. Not quite what one might expect if not used to bash, but sometimes even useful.
Image
Post Reply