Page 1 of 1
Removepkg [OK]
Posted: 4. Oct 2010, 17:19
by Andyun
If enter a command:
, 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?
Re: Removepkg
Posted: 4. Oct 2010, 17:22
by thenktor
Yes.
Re: Removepkg
Posted: 4. Oct 2010, 17:51
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
Re: Removepkg
Posted: 4. Oct 2010, 20:09
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):
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.