Packages menagment tips

Any tips for a newfag debian user for pakage managment?

Attached: package_1.jpg (600x600, 31K)

Other urls found in this thread:

wiki.debian.org/DontBreakDebian.
wiki.debian.org/SimpleBackportCreation
debian.org/distrib/packages
wiki.debian.org/DontBreakDebian
twitter.com/AnonBabble

install gentoo
or kys yourself
preferably the latter.

put this in your .bashrc file:
alias update="sudo apt update && sudo apt dist-upgrade && sudo apt autoremove"

Get used to fixing stuff all the time.

>or kys yourself
>preferably the latter.
I'll consider it
>alias update="sudo apt update && sudo apt dist-upgrade && sudo apt autoremove"
OK, will do

Debian is not ubuntu.
There's a fat chance he doesn't use sudo, which is the right thing to do, so he has to place this into his root's bashrc

What kind of things break on debian?
Last night claimed it's too stable, thus old.
Now it has become too unstable.
Let me remind you that windows users don't apply here

>OK, will do
Don't.
First of learn how to use apt.
Place contrib non-free on your sources.list
Second always do apt update before doing anything else
Then upgrade with apt upgrade, not with dist-upgrade
If you are on 64bit you might want to add the 32bit libraries check for multiarch on the deb wiki
And when the apt tells you that you have unnecessary packages do autoremove.

On top of that there's dpkg -i so you can install .deb packages from 3rd places like skype or wire or....
When you install3rd party packages you might want to invoke apt install -f to install any required library for your new package.
That's it.
Don't use sudo, sudo is for ubuntards.
Use su to switch to root, do your maintenance and then exit.

I've been a Debian user for a while, hardly need to fix anything.

I've been a Debian user for a while, hardly need to fix anything.

Yea, I've been told to use su, but is there any diffrecne between su and sudo ? ofc beside su granting me super user privliges all the time.

Synaptic is pretty good. If you're on stable (best debian imo), backports are good. You can make your own backports. No ppa's. Debian is not ubuntu. wiki.debian.org/DontBreakDebian. Have fun! Debian is goat.

apt policy package
apt search package
apt purge package
apt autoremove --purge
apt install package
apt update
apt upgrade
apt install --no-install-recommends package
apt install -t stretch-backports package
vi /etc/apt/sources.list
wiki.debian.org/SimpleBackportCreation
debian.org/distrib/packages

apt update (updates repos)
apt upgrade (upgrades software)
dpkg -i (for manual isntalls)
apt show pkg
apt list pkg
apt auto-remove
apt-cache list

dont use "apt-get" in command line just use apt now.
apt-get is only for scripting now.

make a apt alias to include "--no-install-suggests --no-install-recommends"

you can add "non-free" and "contrib" to the end of your /etc/sources for proprietary software

Look into "apt pinning" if you want a newer program.
Example: I want to use stable for my OS core but I use testing for firefox and xorg/window manager.

Pinning makes it so can safely mix stable and testing/unstable package wise instead of the whole OS.

su is logging into the / user.
sudo is giving priv escalation to a normal user.

Therefore it can be abused.
It's also not setup by default to properly protect becuase you can do stuff like "sudo su" for example and then password root to change it.

Su or doing ctrl+alt+f1 and loging in via the console is much safer.

SUDO ran in Xorg is also dangerous because all child processes of your user can see it...

su without any parameters changes your terminal to root.
as root you have different bashrc, different home, it's a different account.
with sudo you have the same account that you use for shitposting to do root stuff, plus it's not set by default on debian, so you have to set it up for your user.

What's the proper way to install testing?

wiki.debian.org/DontBreakDebian

well if you force remove a library because the debian repositories are outdated, you could end up fucking up lots of programs when you try to update said library for a specific program. Did this the other day, probably broke 3 or more rules of debian, and after an autoremove, not only were a lot of my packages uninstalled, but it also removed my desktop environment. god damn what a night that was.

Anyway things don't break unless you do things like a retard like I did.

Attached: 1522337013139.jpg (850x1200, 103K)

tpbp