Skip to content

Conversation

@ioistired
Copy link

This will use heredocs and aptitude, instead of apt-get -y install $packagename for each package to be installed, meaning that apt-get doesn't have to read the package cache database for each package installation, avoiding slowdowns.
So, instead of

apt-get -y install gimp
apt-get -y install krita
apt-get -y install inkscape

We can use

aptitude -y install <<-EOF
    gimp
    krita
    inkscape
EOF

The reason for using aptitude instead is that using apt-get and a heredoc would exit if a non-existent package is listed. aptitude ignores non-existent packages, however.

@SlaterByte
Copy link
Contributor

We need to test this branch on a couple of fresh systems before merging. As apt-get has an --ignore-missing but not an --ignore-nonexistant, aptitude looks like the right solution. aptitude to speeds up the install process and make it cleaner. However, how can aptitude tell us when a package is no longer available? It doesn't seem to produce any standard error, even if packages aren't found.

# Install libc6:i386 to fix dependency problems for nyancat:i386
libc6:i386
EOF
Copy link
Collaborator

@steenburgh steenburgh Mar 26, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this, but could you port this over to the latest version of the install script? I noticed this PR is a bit over 2 years old now.


#################################
# Install and Run sl or nyancat #
# Install and Run nyancat #
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nyancat is cool + all, but I think it's going to confuse people who are used to a steam locomotive running across the screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants