<commit_before>---
layout: post
title: "Compiling a program from a source"
date: 2017-10-05 09:00:00 -0100
categories: general linux
---
Information source: [https://askubuntu.com/questions/25961/how-do-i-install-a-tar-gz-or-tar-bz2-file](https://askubuntu.com/questions/25961/how-do-i-install-a-tar-gz-or-tar-bz2-file)
How you compile a program from a source
1. open a console
2. use the command cd to navigate to the correct folder. If there is a README file with installation instructions, use that instead.
3. extract the files with one of the commands
    * If it's tar.gz use tar xvzf PACKAGENAME.tar.gz
    * if it's a tar.bz2 use tar xvjf PACKAGENAME.tar.bz2
4. ./configure
5. make
6. sudo make install

<commit_msg>edit post<commit_after>---
layout: post
title: "Compiling a program from a source / installing .deb"
date: 2017-10-05 09:00:00 -0100
categories: general linux
---
Information source: [https://askubuntu.com/questions/25961/how-do-i-install-a-tar-gz-or-tar-bz2-file](https://askubuntu.com/questions/25961/how-do-i-install-a-tar-gz-or-tar-bz2-file)
## How you compile a program from a source
1. open a console
2. use the command cd to navigate to the correct folder. If there is a README file with installation instructions, use that instead.
3. extract the files with one of the commands
    * If it's tar.gz use tar xvzf PACKAGENAME.tar.gz
    * if it's a tar.bz2 use tar xvjf PACKAGENAME.tar.bz2
4. ./configure
5. make
6. sudo make install

## Install `.deb` packages
Install 
```
sudo dpkg -i DEB_PACKAGE
```

Uninstall 
```
sudo dpkg -r DEB_PACKAGE
```

Reconfigure/Repair
```
sudo dpkg-reconfigure PACKAGE_NAME
```

{'fraction_non_alphanumeric': 0.11632155907429964, 'fraction_numerical': 0.04628501827040195, 'mean_word_length': 3.6543909348441925, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4149203', 'n_tokens_mistral': 644, 'n_tokens_neox': 561, 'n_words': 194}