1

Yes, I want to remove whole apt-xxx related stuff, how can I archive it?

1

Yes, you can but this would be a very bad idea.

If you run:

sudo apt-get remove 'apt.*'

apt would show the warning:

WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!

But again you can perform the operation as the lower level tasks will be done by dpkg.

  • 1
    sudo apt-get remove apt would be safer, sudo apt-get remove 'apt.*' may remove also unwanted stuff (for example aptitude if you have it installed, etc) – kos Mar 30 '16 at 11:12
  • I want to remove aptitude also, so that is ok. – naive231 Mar 30 '16 at 11:17
  • @kos check op's comment – heemayl Mar 30 '16 at 11:19
  • 1
    @naive231 Then you should clarify that in the question. But anyway I wouldn't advice removing packages using wildcards / regexes before having checked what the result would be, unless you like living on the edge. List of packages starting with "apt", now those are all related to APT / aptitude, but would you bet you don't have packages starting with "apt" installed from a PPA or that this won't change? Generally, that's bad practice. – kos Mar 30 '16 at 11:38
  • @naive231 If my answer helped, please select it as accepted by clicking the tick mark on the left of my answer so that this issue can be marked as solved.. – heemayl Mar 30 '16 at 15:11
0

apt-get is the package manager, the tool that removes packages. Don't remove that otherwise you wont be able to remove anything.

To remove packages from the terminal, run:

sudo apt-get remove firefox

As an example

  • I know how to remove a package, what I want is remove package system itself, and I know what result it is. So may you hint some directions? – naive231 Mar 30 '16 at 10:37
  • 1
    Why do you want to do that? Your system is pretty much useless after that. You could uninstall ubuntu and install an OS that doesn't use apt, maybe suse or something. – Gasp0de Mar 30 '16 at 10:38
  • In fact, we want to build a closed, read-only system for stability. we don't want user install any package. That's why I want to do. – naive231 Mar 30 '16 at 11:20
  • @naive231 don't give them sudo rights? – Nick Volynkin Apr 5 '16 at 4:24
  • No, our goal is no any account system, user is root after boot into system. So they don't need sudo. :) – naive231 Apr 5 '16 at 13:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.